Clear contents macro
What is the range of blank rows? What do you want to do with the blank
rows?
--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM
"Dave" wrote in message
...
Hi
I have a macro that clears the contents of a sheet after I have
imported the data into a database.
This works fine but if the data is less then 175 rows it leaves
blank rows in the database.
How can I get round this.
Not very good with VBA would appreciate any help
Macro as below:-
Range("A2:N175").select
Selection.ClearContents
Range("A2").Select
Workbooks("MyBook1.xls").Close SaveChange:=True
|