Closed Thread
Results 1 to 6 of 6

Looping Problem

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    36

    Looping Problem

    hi

    i run the following code on file "1"

    Please Login or Register  to view this content.

    then i update the files which got created, with the contents of file "2" with the following code



    Please Login or Register  to view this content.
    it keeps on looping after the last row
    hence
    i need help with the looping problem
    thanks
    Attached Files Attached Files
    Last edited by Spasm; 07-09-2011 at 08:34 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Looping Problem

    Changing "ActiveCell" in the process of sub need to be mentioned - your code seem ignore the problem

  3. #3
    Registered User
    Join Date
    07-07-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Looping Problem

    means ?

    didnt get you ?

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Looping Problem

    Try this.
    Please Login or Register  to view this content.

    Note the Error Handler
    You should have something similar in "Macro3"

    Also this will overwrite files "a", "b","c", etc in row two each time you run it, I suspect this is wrong.
    If so Try this
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Looping Problem

    This a a cross post from here. Spasm, if Marcol's code doesn't work, perhaps you should upload a mock workbook with mock data. This workbook should indicate exactly what you want to happen with the data, both before and after.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Looping Problem

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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