+ Reply to Thread
Results 1 to 4 of 4

VBA Excel Print every Odd WorkSheet within A WorkBook

  1. #1
    Registered User
    Join Date
    03-07-2018
    Location
    Belfast
    MS-Off Ver
    2017
    Posts
    13

    VBA Excel Print every Odd WorkSheet within A WorkBook

    Hi All,
    I am looking for a code which will print every odd worksheet within a workbook, there are currently 200+ sheets within the book and this is likely to increase as time goes on.

    Each worksheet has an individual name, and the page which needs printed ends in "Invoice". I thought I had solved it by looking for the text value "Company" within Cell A12 of a sheet, if it was present then print that sheet and move on, however this did not work either.

    Any help would be appreciated.

    Thanks,
    Daniel

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: VBA Excel Print every Odd WorkSheet within A WorkBook

    Good afternoon DTK0902

    Untested, as I don't want to print hundreds of sheets out, but something like this should be OK :
    Please Login or Register  to view this content.
    This purely looks for every other sheet, starting at the first, using index numbers - it makes no difference what the sheets are named.

    HTH

    DominicB
    Last edited by dominicb; 06-13-2018 at 07:04 AM.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA Excel Print every Odd WorkSheet within A WorkBook

    Use PrintPreview until you are sure of results.....saves paper

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-07-2018
    Location
    Belfast
    MS-Off Ver
    2017
    Posts
    13

    Re: VBA Excel Print every Odd WorkSheet within A WorkBook

    Quote Originally Posted by dominicb View Post
    Good afternoon DTK0902

    Untested, as I don't want to print hundreds of sheets out, but something like this should be OK :
    Please Login or Register  to view this content.
    This purely looks for every other sheet, starting at the first, using index numbers - it makes no difference what the sheets are named.

    HTH

    DominicB
    DominicB - Thank you! That works perfectly.


    Thanks,
    Daniel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Loop through workbooks and print one worksheet - workbook opens but not as active workbook
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2017, 06:26 AM
  2. Headers - Print No of Pages in worksheet (Not workbook)
    By clemsoncooz in forum Excel General
    Replies: 2
    Last Post: 07-25-2016, 11:53 AM
  3. Use Excel Print Button to print all worksheets in workbook and then ungroup
    By Smudge72 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-13-2016, 06:08 PM
  4. Print workbook to Multiple PDF's (Each worksheet is a seperate PDF)
    By omarq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2010, 07:34 AM
  5. how to print list of all worksheet names in a workbook?
    By BAM100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2006, 05:15 PM
  6. [SOLVED] How do I print a list of worksheet tab names in a workbook
    By Clif in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2005, 12:06 AM
  7. How to print a worksheet but number the pages by workbook
    By Frank Clayton in forum Excel General
    Replies: 2
    Last Post: 01-10-2005, 07:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1