+ Reply to Thread
Results 1 to 8 of 8

Trying to loop this macros

  1. #1
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Trying to loop this macros

    Hello,

    Please look at this code and tell me where I'm going wrong, the meat of the code is a recorded macros, what I wish to do is loop the macros to the end of the sheet and have it say 'done' when it is finished doing the loop. Here is the code:

    Please Login or Register  to view this content.
    End Sub

    Any assistance would be awesome.

    CheerZ!
    Wyldjokre69
    Last edited by wyldjokre69; 09-01-2013 at 07:18 PM.

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Trying to loop this macros

    Could you attach a copy of the workbook ? If there is confidential data feel free to remove it and replace it with dummy text. You have a lot of "Selection" and Its hard to see the whole.

    Thanks

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trying to loop this macros

    Maybe ...

    Please Login or Register  to view this content.
    Last edited by shg; 09-01-2013 at 08:04 PM. Reason: simplify ...
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Trying to loop this macros

    Here is a sample worksheet with macros attached to worksheet. Hope this helps. The original is quite long, but I've added the necessary information to see if the loop can be added to the macros.

    CheerZ!
    Wyldjokre69
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Trying to loop this macros

    Hello Shg,

    Thank you for the code, but when I tried it, this part of the code is causing a problem:

    Please Login or Register  to view this content.
    I selected all of the H column, which is where I'm trying to make my corrections and the error: Run-time error '450': Wrong number of arguments or invalid property assignment

    CheerZ!
    Wyldjokre69

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trying to loop this macros

    Gosh, and here I thought testing was overrated ...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Trying to loop this macros

    Hey Shg,

    Genius, friggin' genius. Thank you. It did the trick.

    CheerZ!
    Aaron

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trying to loop this macros

    Friggin' welcome, friggin.

+ 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. loop recorded macros?
    By Nashvillbill in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2013, 06:49 AM
  2. [SOLVED] how to fix do while loop for find macros
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2012, 10:35 AM
  3. Call Macros before Next loop (loop creates new worksheets)
    By mantooth29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2012, 05:47 PM
  4. Do While Loop for Macros to run through various workbooks
    By kchm_2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2011, 12:12 PM
  5. [SOLVED] Making macros loop
    By McKCollins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 08:59 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