tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have a macro below that works great but looks ugly,
what i mean is it opens the pdf half way through the macro, so when you close the pdf it shows me a half loaded screen and a looks ugly before it runs the rest of the macro when everything looks great again.
So I was wondering
Is there a way i can get the macros to still run after its opened the pdf or open the pdf after its run the macros
now the macros clear and reset the page the pdf is created from so we need the macro to be created before the call comand as it is shown.
any ideas plaese?
Thanks
Tony
my code
I have a macro below that works great but looks ugly,
what i mean is it opens the pdf half way through the macro, so when you close the pdf it shows me a half loaded screen and a looks ugly before it runs the rest of the macro when everything looks great again.
So I was wondering
Is there a way i can get the macros to still run after its opened the pdf or open the pdf after its run the macros
now the macros clear and reset the page the pdf is created from so we need the macro to be created before the call comand as it is shown.
any ideas plaese?
Thanks
Tony
my code
Code:
Sub ExportAsPDF3() 'iu
Application.ScreenUpdating = False
Call SetPrintArea ''
Sheets("Fee Proposal PDF").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Sheets("Fee Proposal PDF").Range("AU51") & ".pdf", _
OpenAfterPublish:=True
Application.ScreenUpdating = True
Sheets("Fee Proposal PDF").DisplayPageBreaks = False
Call Clear_New_Fee_Proposal1
Application.ScreenUpdating = True
End Sub
Last edited by a moderator: