Everyone hello,
I have a query, where I want to keep a certain column (eg BB) but I have an existing vba that deletes all rows from 6:1000;
This is the vba I have that removes the rows:
Private Sub Run_Code_Click ()
If ActiveSheet.Cells (1, 2) = "" Then exit Sub
'Clear Data Sheet
ActiveSheet. Rows ("6:1000"). ClearContents
ActiveSheet. Rows ("6:1000"). ClearFormats
ActiveSheet. Rows ("6:1000"). Validation.Delete
ActiveWindow.FreezePanes = False
Application.ScreenUpdating = False
Application.EnableEvents = False
What I would like, is for Column BB not to be removed.
how do I add that to the code as BB has data that is needed and I have to manually add each time the file updates.
I hope you will be able to help.
Many thanks
Pugg
Bookmarks