I use code to perform a Print Preview. This works just fine in 2000 to 2010 (.xls). However, when this was moved to Excel 2013 (.xlsm) it no longer works as desired and in fact halts the VBA Code. I have been looking and looking for a solution but have yet to find it. Can anyone help.
Here is the code I am using.
=====
If Len(Data_File_Waycard_File_Output) > 0 Then
Windows(Data_File_Waycard_File_Output).Activate
ActiveWindow.SelectedSheets.PrintPreview
Windows("WayCardCreatorAppl" & Data_File_Waycard_Appl_Version & ".xlsm").Activate
Sheets("Welcome").Select
Else
MsgBox ("These has been no Waycard created to Preview or Print!")
End If
=====
Thanks for any help you might provide
Here is the code I am using.
=====
If Len(Data_File_Waycard_File_Output) > 0 Then
Windows(Data_File_Waycard_File_Output).Activate
ActiveWindow.SelectedSheets.PrintPreview
Windows("WayCardCreatorAppl" & Data_File_Waycard_Appl_Version & ".xlsm").Activate
Sheets("Welcome").Select
Else
MsgBox ("These has been no Waycard created to Preview or Print!")
End If
=====
Thanks for any help you might provide