VBE - Go to tab related to formula/day

guilli_003

New Member
Joined
Jan 18, 2011
Messages
6
Hi,
I am not great with VBE, but I’m trying to create a “simple” code for my work that does the following:
I have a main workbook with many different sheets called:”Mon – French Prod; Mon – Intern. Prod; Mon – Subs. Prod; Tue – French Prod; Tue – Intern. Prod …” and so on with all the days of the week.
I have 3 secondary workbooks called Book1, Book2, Book3 and I need the last sheet of each to be past for example Book1 will go to “French Prod, Book2 to “Intern. Prod” and Book3 to “Subs. Prod”.
Until there it’s okay, but I want it be paste under the following excel code: “=TEXT(TODAY()-1,"ddd")&" "&"-"&" "&"French Prod"”.
So let’s say we are on Friday and I press my macro from the “Book2”, I want it to paste the last tab of it in the main workbook in the tab called: “Thu – Intern. Prod”.
I hope I’m being clear enough…
Thanks in advance for your help as always!
Kind Regards,
Guillaume Van Aelst
 

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.
Hi,

To simplify let's say that I would just like a macro that leads me to the sheet of the current workbook through that formula: =TEXT(TODAY()-1,"ddd")&""&"-"&" "&"French Prod"...

Is it possible?

Thanks in advance for your help.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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