Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 40

Re: VB macro doesn't work right in Office 2013

$
0
0

1 techie007 - step through the code and identify where it does not work. although there appears to be no issue when you are printing to a pdf.

Basically, each printing subroutine is run for each worksheet and if there is a y or Y in the correct cell then the worksheet is printed. If PDF is in the cell then the sheet is printed to pdf. If the cell is empty then the sub ends and the next one runs.

What is printed of you print the workbook from the toolbar - to pdf in case it does reams of pages - are all pages printed albeit in different layouts and formats?

if you have a worksheet that does not print then you can just run the

Worksheets("Direct Assignments").PrintOut

line within each subroutine by either stepping into the code as mentioned above or commenting out all of the other lines by putting a ' at the beginning.

One other thing...


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>