I have a macro that takes a certain tab, changes the variables, copies the sheet and the prints the individual sheets to PDF. I have used this in more than one workbook successfully, however, when I tried to update another file this morning, I receive the runtime 5 error when it gets to the red portion. I have tested the other workbooks with this code and it works perfectly.
I have resaved the file as macro enabled workbook and checked the code is identical in all workbooks. Does anyone have any suggestions on file settings to tweak that may be causing the issue? I know the code itself should not be the problem as it works perfectly in other workbook files.
![]()
Please Login or Register to view this content.
Bookmarks