Beginner- Macro Question

ksundaram

New Member
Joined
Dec 30, 2010
Messages
8
Hey, I am trying to create a macro that will automatically do a particular set of changes to the same workbook, that has multiple worksheets, every three months. I do not know much/really anything about VB unfortunately, so I just recorded the macro through excel.

It recorded fine and it has all the changes that I want it to make for my workbook, but I have a problem in that the my worksheet names also change every 3 months i.e., one will say 'December 2010 vs. Sep 2010' and in three months it'll change to 'March 2011 vs Dec. 2010.'

When I try and run this same macro (which i created when the worksheet was called 'Dec 2010 vs. Sep 2010') with the changed tab names I get an error because I guess it can't find that particular worksheet, even though all the changed was the name.

Is there anyway to code my macro so that it just goes to the generic Worksheet 2 instead of looking for 'Dec 2010 vs. Sep 2010'?
 
Last edited:
I'm bored actually, want to paste your entire code? It looks like it could go faster. Not that it matters. Just bored.
 
Upvote 0
I appreciate the offer but there's no need. It's a relatively simple macro that just does a few format changes that need to be done periodically. Only takes a couple seconds for it to run so it's fine.
 
Upvote 0

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