+ Reply to Thread
Results 1 to 5 of 5

print copies of the same sheet with changing values in a box

  1. #1
    milos
    Guest

    print copies of the same sheet with changing values in a box

    Hi, I have a work sheet with a chart and tables. I want to print this sheet
    40 times, but each copy will have changed value in one box (add 1 to the S2,
    so it will rise from 1 to 40) Is there a possibility how to create a command,
    which will print this sheet with changing value in the box?
    Thanx.

  2. #2
    Forum Contributor
    Join Date
    03-24-2004
    Location
    Edam Netherlands
    Posts
    181
    For i = 1 to 40

    Range("A1").value = i
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

    next i

  3. #3
    milos
    Guest

    Re: print copies of the same sheet with changing values in a box

    Well, looks like it would work. unfortunately I'm total macro greenhorn.
    Could you write me steb by step how should I run it.
    Thanx a lot.

    Kaak pÃ*Å¡e:

    >
    > For i = 1 to 40
    >
    > Range("A1").value = i
    > ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    >
    > next i
    >
    >
    > --
    > Kaak
    > ------------------------------------------------------------------------
    > Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
    > View this thread: http://www.excelforum.com/showthread...hreadid=555909
    >
    >


  4. #4
    milos
    Guest

    Re: print copies of the same sheet with changing values in a box

    Thanks for the answer again, forgety my previous question, I found it out
    lately.
    But: What if I want the range to be from i=1 to (s2) - so not the exact
    number (40) but a value in a cell.

    Kaak pÃ*Å¡e:

    >
    > For i = 1 to 40
    >
    > Range("A1").value = i
    > ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    >
    > next i
    >
    >
    > --
    > Kaak
    > ------------------------------------------------------------------------
    > Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
    > View this thread: http://www.excelforum.com/showthread...hreadid=555909
    >
    >


  5. #5
    strive4peace
    Guest

    Re: print copies of the same sheet with changing values in a box

    Hi Milos,

    For i = 1 To Range("s2")


    Warm Regards,
    Crystal
    Microsoft Access MVP 2006

    *
    Have an awesome day

    remote programming and training
    strive4peace2006 at yahoo.com

    *

    milos wrote:
    > Thanks for the answer again, forgety my previous question, I found it out
    > lately.
    > But: What if I want the range to be from i=1 to (s2) - so not the exact
    > number (40) but a value in a cell.
    >
    > Kaak pÃ*Å¡e:
    >
    >
    >>For i = 1 to 40
    >>
    >>Range("A1").value = i
    >>ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    >>
    >>next i
    >>
    >>
    >>--
    >>Kaak
    >>------------------------------------------------------------------------
    >>Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
    >>View this thread: http://www.excelforum.com/showthread...hreadid=555909
    >>
    >>


+ 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