+ Reply to Thread
Results 1 to 3 of 3

How to set up multiple macros to print specific cells

  1. #1
    Registered User
    Join Date
    02-27-2016
    Location
    Cairns, Australia
    MS-Off Ver
    2013
    Posts
    1

    Cool How to set up multiple macros to print specific cells

    Hello please help!

    I want to set different print areas for a spreadsheet which has week one week two etc. Can i set up 4 macros to have different print areas?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to set up multiple macros to print specific cells

    Hi, lynds88,

    turn on the macro recorder to have a basic look at what´s being recorded, stop the first one and start a second for the difference (get the Desogner ribbon being visible via Options).

    The answer is yes, you might use a code like
    Please Login or Register  to view this content.
    which is referring to a dynamic range on the AcrtiveSheet and where the print-area could be hard-coded for your needs in every single macro.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: How to set up multiple macros to print specific cells

    Another approach. This allows you to choose which range to print at the time using a simple input box.
    - create Named Ranges for each week's data (do not include the header row)
    - give them the names week1, week2, week3, week4
    - header row is assumed to be the one immediately above the data
    - run macro from the sheet containing the data

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-20-2014, 02:42 PM
  2. [SOLVED] Macros Print multiple invoice Generator 2 different customers per single page Odd/Even num
    By Garbology in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-25-2013, 11:20 PM
  3. Set multiple print ranges in same sheet using macros
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2013, 03:59 PM
  4. Multiple Print Macros within the same excel tab
    By excelskillsneeded in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 01:00 AM
  5. Print specific Tab with Macros
    By Uncle heFTy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-31-2010, 09:14 AM
  6. Print specific pages based on specific cells
    By cane corso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2008, 05:23 PM
  7. Do not Print specific cells
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2008, 03:24 AM

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