Hi Friends,
I am trying to remove the column based on their name with the help of below code but its giving error after deleting one column. Thanks for help.
![]()
Please Login or Register to view this content.
Hi Friends,
I am trying to remove the column based on their name with the help of below code but its giving error after deleting one column. Thanks for help.
![]()
Please Login or Register to view this content.
A couple of rules of thumb I follow:
- Only create variables for things that are going to be used multiple times throughout a lengthy macro. If it's one use, just reference it.
- Try not to make big physical changes to a workbook over and over. Try to make all the changes all at once, when possible.
With that in mind, this is my approach. Find all the cells, memorize them, then delete all the found columns all at once, one time.
![]()
Please Login or Register to view this content.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
What is the error message?its giving error after deleting one column.
- Battle without fear gives no glory - Just try
How about![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by JBeaucaire; 03-05-2020 at 03:57 PM. Reason: Added required CODE tags as per FORUM RULES.
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks