How Do I Run A Macro When Excel Is Resized?

  • Thread starter Thread starter Tim Hubbard
  • Start date Start date
T

Tim Hubbard

I have an excel application which I have stripped down (removed
scrollbars, etc). To keep the whole page in frame, I would like to
have it rezoom when the window is resized. Can anyone provide me a
code sample on how to do this?

Thanks,
Tim
 
Hi
try using the workbook event:
Private Sub Workbook_WindowResize(ByVal Wn As Window)
 
Frank Kabel said:
Hi
try using the workbook event:
Private Sub Workbook_WindowResize(ByVal Wn As Window)

Hi Frank,

That only fires when a workbook window *inside* the Excel application
window is resized. There is no event I know of that will fire when the Excel
application window itself is resized, which I believe is what the OP is
looking for.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 
Rob Bovey said:
Hi Frank,

That only fires when a workbook window *inside* the Excel application
window is resized. There is no event I know of that will fire when the Excel
application window itself is resized, which I believe is what the OP is
looking for.
Hi Rob
you're probably right. Misread the OP's posting :-)

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top