+ Reply to Thread
Results 1 to 5 of 5

Repeat macro

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Repeat macro

    Hi ,

    I'm stuck. I'm not very good with macros/vba so any help or a nudge in the right direction will be much appreciated. I have the macro below which looks for the word "of" in column D when it finds it it clears the cell contents above and below it. This is my code -
    Please Login or Register  to view this content.
    What I would like it to do is carry on repeating itself until it gets to the last "of" in col D on the spreadsheet.

    many thanks
    wrightie
    Last edited by wrightie; 07-14-2010 at 05:34 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Repeat macro

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Repeat macro

    Hi snb,

    Cheers for the quick response. I've tried the code but it seems to get stuck in a loop and the macro doesn't come to a finish.

    Is there anything else I can try ?

    wrightie

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Repeat macro

    Try this:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Repeat macro

    That's it romperstomper. Works perfectly, fantastic !

    thanks for your help as well snb.

    cheers
    wrightie

+ 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