+ Reply to Thread
Results 1 to 2 of 2

Creating an array of sheets to print

Hybrid View

  1. #1
    Luc Dansereau
    Guest

    Creating an array of sheets to print

    Hi,

    Can someone help me with this:

    In VB, I want to select multiple sheets (but not all, and not allways the
    same) based on certain criterias. Once this will be done, I will be able
    using "ActiveWindow.SelectedSheets.PrintPreview" to print (or preview) those
    selected sheets.

    Thanks for your help

    Luc Dansereau



  2. #2
    mike
    Guest

    Re: Creating an array of sheets to print

    If the criteria is manually applied, consider adding a form to your
    workbook. For each sheet, add a checkbox as a print control.

    If programmatically, record the worksheet name (or number) in an array
    (or a string) if the criteria is met. Then Select them using something
    like the following:

    Sheets(Array("Sheet1", "Sheet3")).Select

    Finally. process the array for printing.


+ Reply to 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