+ Reply to Thread
Results 1 to 5 of 5

Macro to print page if data in specified cell

  1. #1
    Registered User
    Join Date
    08-27-2004
    Posts
    40

    Macro to print page if data in specified cell

    Hello!

    A few years back someone kindly posted the following code which allowed me to print using a macro any worksheet within my workbook if it had data in a specified cell (in this case A4).

    Please Login or Register  to view this content.
    How can I modify this so that it performs the same process but ONLY on the one worksheet, not all worksheets within a work book?

    Thanks in advance.

    Darren
    Last edited by VBA Noob; 03-05-2008 at 10:50 AM.

  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
    Maybe

    Please Login or Register  to view this content.
    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 !!!

  3. #3
    Registered User
    Join Date
    08-27-2004
    Posts
    40
    Thank you for the quick response.

    Would I add this to the exisiting code? I have tried it by itself but I receive an error.

    Thanks

    Darren

  4. #4
    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
    Why would you add it to the existing code ??

    What's the error. Did you change Sheet1 to your sheet name

    VBA Noob

  5. #5
    Registered User
    Join Date
    08-27-2004
    Posts
    40
    Thanks again for replying so quickly. Your comment regarding changing the sheet name quickly drew me to what was wrong - I had missed a space in the sheet name - sorry.

    Regards

    Darren

+ 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