+ Reply to Thread
Results 1 to 4 of 4

VBA Looping and Printing

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    VBA Looping and Printing

    Hi

    Firstly thanks for any help given.

    Requirement:

    VBA to search a vertical range (B2:B21) for any cells that are not blank, then copy/paste the number to another cell on a seperate worksheet called "NewForm" and cell (C25), then print this form. When sent to printer it needs to find the next number in the next cell and repeat process until the next cell is blank.

    I have the below, but this copies and pastes the first two entries below each other on NewForm rather than in the same cell (C25)... Any thoughts/solutions?

    Notes: The range is always the same, the destination is always the same and there can be between 1 and 20 entries in the range.



    Please Login or Register  to view this content.
    Last edited by stevow; 11-17-2009 at 12:55 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Looping and Printing

    Hi Stevow. Welcome to the forum.

    Be sure to read through the Forum Rules so you can use and follow them effectively. For instance, you'll need to edit that post above and put code tags around that code you used. (Like I did below...)
    ============


    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Talking Re: VBA Looping and Printing

    Great stuff!! All perfect!!

    I changed the code as requested, thanks for the rule set for me to adhere to.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Looping and Printing

    Awesome, glad to help! Come back for more, maybe you'll have the answer to someone else's question?

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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