I've designed a tool in excel for multiple users to use. When I open the tool on my monitor it fits perfectly to the screen. I've done this by simply zooming to a range:
Sheets("sliders").Activate
Range("A1:BA51").Select
Range("A51").Activate
ActiveWindow.Zoom = True
I was wondering if anyone knows of a better way of doing this. Some users have said that the tool cuts off sections at the sides and top? I guess this is because the aspect ration of their monitor is different to mine.
Is there any way you can access this kind of information using VBA in excel? I could make cases for different type of screens if this was the case.
For autofitting i usually use this:
on your worksheet highlight the entire range of cells you want to display Go to the Insert Menu, and choose "Name" and then "Define" Name the range you've highlighted "ResizeRange"
Then in VBA choose "ThisWorkbook" and paste the following code:
If you wan't to go a step further u can also remove all ribbons etc. so you visually only can see your spreadsheat. then do the following
In thisworkbook :
In module1:
In module2:
In each sheet :
this removes everything and upon closing it puts it all back so if you open an excel file it will look normal again.
in worksheet_activate and worksheet_open you can add the following line to make sure that one cant scroll and your info stay in screen all the time.