+ Reply to Thread
Results 1 to 2 of 2

Which sheet will be printed?

  1. #1
    Saniya
    Guest

    Which sheet will be printed?

    Hello Gurus!

    Is there a way to know which sheet is going to print?
    I want to add a code to Cell A1 before the sheet is printed.

    by creating an Addin I can do it if the user prints the active sheet.

    But in case the user prints a sheet by using code like
    sheets("Sheet2").printout and running it from sheet1 then how I cud
    enter a value in cell A1?

    Thanks


  2. #2
    Bob Phillips
    Guest

    Re: Which sheet will be printed?

    When a sheet is printed, it becomes the activesheet, albeit temporarily, so
    you can address the activesheet wherever it is done from.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Saniya" <gsoniya@gmail.com> wrote in message
    news:1129535859.992391.138330@g43g2000cwa.googlegroups.com...
    > Hello Gurus!
    >
    > Is there a way to know which sheet is going to print?
    > I want to add a code to Cell A1 before the sheet is printed.
    >
    > by creating an Addin I can do it if the user prints the active sheet.
    >
    > But in case the user prints a sheet by using code like
    > sheets("Sheet2").printout and running it from sheet1 then how I cud
    > enter a value in cell A1?
    >
    > Thanks
    >




+ 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