kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
So I read stuffs and learned that I can use a message box to find the constant assigned to the current paper size then used that and pass it to the "<code style="box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; vertical-align: baseline; background-color: rgb(240, 240, 240); max-height: 300px; overflow: auto; color: rgb(12, 13, 14);">PageSetup.PaperSize"</code><code style="box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; vertical-align: baseline; background-color: rgb(240, 240, 240); max-height: 300px; overflow: auto; color: rgb(12, 13, 14);"> property.
So I did,
That's the constant I got from the post card paper size.
Then the system changes it to "&043".
But when I run it, it fails to do the job.
What is it that I did wrong?
Thanks for reading</code>
So I did,
Code:
Sub SetPSize()
<code style="box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; vertical-align: baseline; max-height: 300px; overflow: auto;">PageSetup.PaperSize = &43</code>
End Sub
That's the constant I got from the post card paper size.
Then the system changes it to "&043".
But when I run it, it fails to do the job.
What is it that I did wrong?
Thanks for reading</code>