Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to clear contents of certain cells | Excel Discussion (Misc queries) | |||
Macro to clear contents and put an X | Excel Discussion (Misc queries) | |||
Need macro to clear contents | Excel Programming | |||
Clear Contents Macro | Excel Worksheet Functions | |||
MACRO TO CLEAR CELL CONTENTS | Excel Programming |