+ Reply to Thread
Results 1 to 5 of 5

macro to produce paramterized customized printout

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question macro to produce paramterized customized printout

    Hi

    I am an experienced Java-Programmer with 0 experience in excel programming (well, my last macro programming experiments date back 20 years or so ... shocking ...).

    I have a reporting-sheet with weeks as columns and projects as rows. Each project has a project manager.

    Once a week, project managers meet and report their projects based on this sheet. To prepare, I have to filter out my projects (rows) and disable columns of past weeks (because excel cannot print unconnected areas). Then I can print the selection.

    Now I want to automate this process as follows:
    - select project manager
    - select a range of weeks

    -> the macro will filter-out the rows and disable unneccessary columns, then print the remaining, visible cells.

    As I am complete newbee I need basic advice.

    My approach would be to record a macro and then manually fill in the paramters, but I am unsure how to do so, especially regarding input facilities, dialogs or similar.

    Thanks in advance and cheers,

    Dostl_ba!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: macro to produce paramterized customized printout

    Hello

    InputBox, MsgBox and FileDialogs will be good reading.

    You can achieve this using array formulas though if you wanted to stay away from VBA.

    I am learning JAVA :o) so may be some knowledge swapping :o)

    I'll attach a quick example in a bit
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: macro to produce paramterized customized printout

    FORUM_D5.xlsx

    Please find attached, will need some error trapping on the formula

  4. #4
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: macro to produce paramterized customized printout

    Thanks for the quick answer, nathansav,

    I cannot download xls at work so I will check out your example this evening from home.

    Cheers, Dostl_ba

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: macro to produce paramterized customized printout

    Do you want me to save as XLS?

+ 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. Printout Macro
    By Dibbley247 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2013, 09:32 AM
  2. printout macro issue
    By sick stigma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2012, 02:16 AM
  3. Change pdf printout destination using vba macro
    By dietzj1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2010, 01:47 PM
  4. [SOLVED] Macro To Printout Worksheets Crashes
    By Martin Fishlock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-29-2005, 12:35 PM
  5. produce a formulate to produce assigned seats for dinner
    By DavidJoss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-03-2005, 10:05 PM

Tags for this Thread

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