I'm new to VBA.
I'm looking to create some code that will filter a table on one sheet copy this then paste into a new sheet, whilst that new sheet has been renamed with today's date, then hiding the existing sheet again. This is need weekly and possibly daily.
So far I have
Sub test2() ' ' test2 Macro ' ' ActiveSheet.ListObjects("Pipeline").Range.AutoFilter Field:=1, Criteria1:= _ "<>" Range("Pipeline[[#Headers],[FC]]").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select Selection.Copy Dim SheetName As String SheetName = Format(Date, "dd-mm-yyyy") 'Change the format as per your requirement Sheets.Add , Worksheets(Worksheets.Count) ActiveSheet.Name = SheetName End Sub This is filtering the range in the table and copying, and also creating the new worksheet. But how do I then past into the new sheet then hide the sheet again. Ideally I suppose the code needs to unhide the sheet to begin with. The sheet name is FC_Pipeline.
Any help is greatly appreciated.
Thanks Ted