Run a macro from PERSONAL to resize any workbook when it opens?

EdNerd

Active Member
Joined
May 19, 2011
Messages
456
People send me workbook files as email attachments, and I always have to adjust the size to fit my screen. I have the macro stored in PERSONAL and can run it from there - not a problem. But is there a way to detect a workbook opening and automatically run the macro every time a workbook opens up?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Maybe if you could use Application events. Have never used (requires a class module). It seems that if you could discover the right event it would be a lot of effort compared to the gain, which I see as not having to click on the maximize button on the app window.
 
Upvote 0
The other way is to assign it to a short cut key.
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

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