Excel macro needed for deleting column contents and column as well

talktorajpatil

New Member
Joined
May 22, 2015
Messages
6
Hi folks,

I have an excel sheet with multiple tabs and multiple columns with randon sequence on each tab.
I have two requirements -
1) I want to delete entire columns iteself from all the tabs of excel with value in 1st row as 'Select' or 'Start'
2) I would like to clear the contents (and not to delete column) with value in 1st row as 'Prompt'. (Value in 1st row should not be deleted)

I am novoice to VBA Macro for excel. Can anyone give me a complete macro for it?
Detailed help is appreciated.
Thanks in advance.

-Regards,
Raj Patil
 
Have a look at one of the sheets and Press CTRL + End
Where does the the cursor go to ??
If it's a long way from the last used cell, the excess rows and columns will need to be deleted

BUT, the code shouldn't be causing that problem
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,215,517
Messages
6,125,288
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top