Closed Thread
Results 1 to 2 of 2

Printing multiple sheets

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Printing multiple sheets

    I have a workbook with 8 different sheets that may or may not need to be printed on a daily basis. I want to set up a command that will print only the sheets that meet a certain criteria in another sheet. For example:

    If A2 in sheet_1 = x, then sheet_2 = print;
    If A3 in sheet_1 = [blank], then sheet_3 = do not print;
    If A4 in sheet_1 = [blank], then sheet_4 = do not print;
    If A5 in sheet_1 = [blank], then sheet_5 = do not print;
    If A6 in sheet_1 = x, then sheet_6 = print;
    If A7 in sheet_1 = x, then sheet_7 = print;
    If A8 in sheet_1 = x, then sheet_8 = print;
    and so on....


    I am using following loop macro to print but am receiving a compile error at the start of the "IF" statement on the word "acell".


    Please Login or Register  to view this content.
    the sheets I want to print are named sheet_2, sheet _3, and so on up to sheet_9

    Any help is appreciated

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Closed.

    Duplicate post.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed Thread

Thread Information

Users Browsing this Thread

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

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