Thread: Delete cells.
View Single Post
  #4   Report Post  
mikerickson mikerickson is offline
Junior Member
 
Location: Winters CA
Posts: 22
Default

Copy/paste all the addresses for one sheet from this message board to a Word Document.
Use Replace to replace all colons, semi-colons and paragraph marks with a comma.
Use Replace to replace all spaces and non-breaking spaces with the null string.
This should result in one long string of cell addresses, seperated only by commas.
Do this for all sheets.
Open Excel and press Record Macro
Select a sheet
Copy the corresponding string from Word and paste it in Excel's Name Window.
Press Return
Press Delete
Select another sheet
Copy the corresponding string from Word and paste it in Excel's Name Window.
Press Return
Press Delete
...
repeat until all sheets are done

Stop Recording


Quote:
Originally Posted by Jman View Post
Can any one give me a formula or a macro that will automatically delete
whatever i have in the cells below. I dont have anything specific text or
numbers that can be identified in the cell to delete them (inorder to use
Auto filter). I just need them blank.
Here are the cells i want deleted:


On Sheet called "Client Visit Input"
B55:N85
B118:N148
B155:N185
B192:N222
B229:N259
B266;N296
B303:N333
B340:N370
B377:N407
B414:N444
B451:N481
B488:N518

On the sheet called "Monthly Income Input"
B59
B74
B122
B137
B159
B174
B196
B211
B233
B248
B270
B285
B307
B322
B344
B359
B381
B396
B418
B433
B455
B470
B492
B507

Last edited by mikerickson : June 16th 07 at 04:32 AM