+ Reply to Thread
Results 1 to 3 of 3

Looping Macro Code

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Anchorage
    MS-Off Ver
    Excel 2007
    Posts
    42

    Looping Macro Code

    I have written a macro but it is too long. I tried to use a loop but it did not work. I need help from the experts. Your prompt response will be very highly appreciated.

    The spreadsheet is attached.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Looping Macro Code

    One way to shorten the code is to remove most or all of the Select and or Selection parts of the code and rewrite them.
    So this...
    Please Login or Register  to view this content.
    Becomes this...
    Please Login or Register  to view this content.
    Do this for all the copy/paste sections of the code.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    Anchorage
    MS-Off Ver
    Excel 2007
    Posts
    42
    Quote Originally Posted by gmr4evr1 View Post
    One way to shorten the code is to remove most or all of the Select and or Selection parts of the code and rewrite them.
    So this...
    Please Login or Register  to view this content.
    Becomes this...
    Please Login or Register  to view this content.
    Do this for all the copy/paste sections of the code.
    This will not help much. I how can do the same using For/Next loop

+ 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. Code keeps looping through
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2014, 04:47 PM
  2. Help on looping macro code and not repeating myself
    By windowsxprel in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2014, 06:17 AM
  3. [SOLVED] Code at the end of looping macro
    By The Skipper in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2013, 06:10 PM
  4. [SOLVED] Trying to change verbose looping code into more efficient (and shorter) code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2013, 07:43 AM
  5. Help with Looping Code
    By JimMay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2006, 10:45 PM
  6. Macro Help. Looping, code change.
    By TheDPQ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2006, 03:00 PM
  7. Looping code in Excel macro
    By Robert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2005, 01:06 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