+ Reply to Thread
Results 1 to 14 of 14

Amending code based on cell value

Hybrid View

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

    re: Amending code based on cell value

    I was not sure what you meant by working sheet so I have assumed it is the sheet name

    Sheets("Completion sheet").PrintOut Copies:=Sheets("working sheet").Range("h12").Value
    If it is the Active sheet then change
    Sheets("working sheet")
    to
    Activesheet
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  2. #2
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    re: Amending code based on cell value

    hi mudraker

    working sheet is the sheet all the data is put into
    ie name
    address
    etc etc

    and then i have a sheet called completion sheet which would need to print the number of copies based on cell h12 in working sheet
    i thnk that will be your top answer

    thanks

  3. #3
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    re: Amending code based on cell value

    hi mudraker
    its not doing as id hoped
    i have attached it

    so if cell h12 ( in yellow) has 3 in it i need it to print 3 copies of completionsheet and if it says 20 it needs to print 20

    thanks for your help
    Attached Files Attached Files

+ 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