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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,216,499
Messages
6,131,010
Members
449,613
Latest member
MedDash99

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