Looking for a code that will automatically adjust to a users screen resolution, once they open up the Excel file. What I have already is:
Please Login or Register to view this content.
Looking for a code that will automatically adjust to a users screen resolution, once they open up the Excel file. What I have already is:
Please Login or Register to view this content.
I tried it in a blank workbook and changed 100 to true and it worked as expected.
1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.
Tom
[QUOTE=gmr4evr1;4276266]I tried it in a blank workbook and changed 100 to true and it worked as expected.[/QUOT
Liked I stated above, I've tried the True function also, and it registered no difference. I sent 2 Test pages to a friend, Test and Test2. Test had the 100 and Test2 had the True. Both returned the same exact look on the screen.
I think Excel 2013 do not behave in the same way as Excel 2010. Take a look at this youtube video
https://www.youtube.com/watch?v=lA3e0u5JGEY
Alf
You can use the Windows API to do this.
Please Login or Register to view this content.
Last edited by JapanDave; 01-01-2016 at 08:15 AM.
Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
I am the real 'Napster'
The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...
If you receive help please give thanks. Click the * in the bottom left hand corner.
snb's VBA Help Files
I've saw this code online, but I really don't understand how to use it. I've copied and pasted it into the VBA editor, but i never saw any difference. Maybe I'm using the code wrong. I need this code, incorporated, with this code, below:
How do I implement my code with your Windows API code?Please Login or Register to view this content.
OK, try this,
Edit, sorry I did not see your last posts code.
Please Login or Register to view this content.
Last edited by JapanDave; 01-01-2016 at 08:36 PM.
I tried the code out, it didn't work, BUT could it be because i'm only trying it on my system? I've been trying it on my laptop, which is, 1366 x 768. I drop my screen resolution to 1024 x 768 to see the difference. Question is, is it because i'm trying it on my own system and not another?
It should not matter what resolution the screen is. You do want it at 100% correct?
Can you go into Visual Basic editor > View > open Intermediate window for me.
Than put this code in a standard module and step through it with F8.
Then can you tell me the value in the intermediate window of "mW" and "z"
Please Login or Register to view this content.
I want to see what your PC spec is.
Than, it should be working fine. BTW, adjusting the screen resolution won't do anything for making Excel 100% zoom. Can you manually adjust the the zoom to 50% in "EXCEL" and then run this code.
Then tell me if excel went back 100% zoom.
Please Login or Register to view this content.
No, I need to to run the code I just posted while the file is open. Paste in a normal module in the VB editor, click run/play ,go back to the sheet you just adjust to 50% and tell me if the window is back to 100% zoom.
If that is the case, you workbook on open even is not working. Can you post the workbook without sensitive data?
I just tired the file I've been working on. I dropped the zoom percentage to 50%, then I saved the file. I re-opened the file up, and it opened up at 100% zoom. This is the code i was using:
Please Login or Register to view this content.
So does that mean you are getting the results you need? If so mark the thread solved and don't forget to give reputation to those who helped you.
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks