+ Reply to Thread
Results 1 to 5 of 5

Trouble getting macro to loop

  1. #1
    Registered User
    Join Date
    09-19-2017
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Trouble getting macro to loop

    Hello!

    I have been trying for a few days to get this macro to loop. It needs to take info from page 1 and paste into specific areas on sheet 1 then print. I have it doing that much but I need it to do this for each row on page 1 until there is no more data. It is to print some very basic invoices. I have tried many variations with no luck. Any help or advice would be appreciated! Thank you.


    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 09-19-2017 at 04:34 PM.

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trouble getting macro to loop

    can you attach a sample workbook? need to see a representative of what the source looks like

    this is what your code looks like once it is streamlined

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-19-2017
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Trouble getting macro to loop

    Yea sorry about the formatting. I think I attached a sample worksheet its not pretty but I think you'll be able to see what I'm going for. Thanks!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trouble getting macro to loop

    some questions for you. i added your macro to the workbook module and ran it. gave me errors.

    which sheet is the active one when you run your macro? Also which cell is active.

    what can you tell me about page1_1? how do you decide which row you will use?

    maybe best way is to add a sheet that shows what you want it to look like before it is printed.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Trouble getting macro to loop

    This should give you an idea...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Trouble With Creating Loop
    By TriadSlayer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2017, 01:51 PM
  2. Trouble with loop...I think
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2014, 08:27 PM
  3. Trouble with For Loop
    By EverGreen1231 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-18-2014, 08:57 AM
  4. Trouble with loop
    By Jietoh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 04:25 PM
  5. [SOLVED] I am having trouble accessing information with an if loop.
    By Spreadlover in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 07-17-2013, 04:39 PM
  6. [SOLVED] Trouble with macro - Loop through all work sheets
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-06-2013, 05:23 AM
  7. Trouble with Formula (in loop)
    By dugong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2008, 05:27 AM

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