Macro Reverting to Old Setting???

cookeetree

Board Regular
Joined
Mar 2, 2015
Messages
52
G'day Excel Gods,

I have a macro that has been running fine, until today. The macro copies a worksheet into a new file, pastes the values to remove formulas, then sets up print parameters and prints the new file.

This line...

.LeftFooter = "Signatory ................................................ Date: " & Date & " J. Smith"

...simply creates a footer with today's date and the signatory's name.

As of today, instead of printing today's date, it prints 13/09/2023 and instead of J. Smith, it prints the previous signatory's name.

The most bizarre thing is that, if the macro is run a second time, it works perfectly!

Any help you could provide would be much appreciated.

Cheers, Jason.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I think in order for anyone to help you, you would need to post your VBA code and tell us how exactly you run it and when.
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,132
Members
449,097
Latest member
mlckr

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