+ Reply to Thread
Results 1 to 3 of 3

Printing maceo

  1. #1
    Registered User
    Join Date
    02-24-2004
    Posts
    21

    Printing maceo

    I have an Excel template workbook that has 20 worksheets. The sheets represent different machines. When a customer orders a machine the appropriate info is entered into the template. Not all the sheets are used for any one customer.

    Is there a way to create a macro that will only print the sheets with data entered on them and possible number them at the bottom? Currently, we go to each worksheet in the workbook and print it as needed. The final printed version has no numbers as they are all from different worksheets.

    Deb

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Dah

    A Macro can be created to add/change Headers and Footers or any other data before printing out only the sheets required.

    There are many different ways that it can be constructed.

    If you have any thoughts of how you would like it constructed for ease of use then reply with those details along with a little more details of how you determine what sheets are to be printed for each case

  3. #3
    Registered User
    Join Date
    02-24-2004
    Posts
    21
    I have now created a userform that has several checkboxes on it. The user checks the box for the sheet they want to be printed. This seems to work fine. My only question: How to get the userform to come up on the spreadsheet. I can run it fine in the code. I tried the Load and Show codes but they don't seem to work. I just get an error message 424.

    Private Sub frmDelete_Initialize()
    CheckBox1.Caption = Sheets("Main Page").Name
    End Sub

    Private Sub CheckBox1_Click()
    If CheckBox1.Value = True Then Sheets("Main Page").PrintOut Copies:=1
    End Sub

    Private Sub CommandButton1_Click()
    Unload Me
    End Sub

    Private Sub UserForm_Click()
    Load frmDelete
    End Sub

+ 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