+ Reply to Thread
Results 1 to 5 of 5

Print with Macro

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Print with Macro

    Hi,

    Newbie at macro here..help!!

    How do you do conditional printing of worksheets for macro (using recorded macro)?
    Bacially I have to print for A-E(total of 5) under heading (cell D161).
    Sometimes, I do not need to print for all 5 as there maybe only information for A-B and E,
    no information for C and D.

    Hence I should do a for or if/else loop to run?
    What is e proper syntax?
    Thanks.

    Below is a sample of my recorded macro.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 07-08-2010 at 02:40 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Print with Macro

    Hello zessie,

    Welcome to the Forum!

    To make posts easier to read, copy and edit, please use code tags. I have done this for you because you are new. Do take some time to read the forum rules. These help make it easier to find and get answers quickly to your questions.

    As a new member, please take some time to familiarize yourself with the rules.
    Click here for the Forum Rules
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Print with Macro

    thanks! anione who can help with the conditional printing code?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Print with Macro

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Print with Macro

    Have you bothered to read the Forum Rules?
    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this

    Cross posted at Code cage Forum


    http://www.thecodecage.com/forumz/me...ual-basic.html

+ 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