+ Reply to Thread
Results 1 to 3 of 3

Loop issue

  1. #1
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    300

    Loop issue

    Hi,

    Yesterday I posted a loop question and several of you answered it quickly. That solved my problem and I thought gave me what I needed going forward. However, when I tried to make another loop work today something went a little wrong. I have attached a workbook named "Test". Within that workbook there is a macro named "Test" (code below). What I would like it to do is loop through the workbook performing the macro on every sheet. What is happening is that it is running the macro over and over on the same sheet.

    I think the code might a bit longer than it should be to perform the macro. I'm getting better at cutting it down but I don't think that would have anything to do with the loop issue would it?

    What am I doing wrong? It is looping but not moving to from one sheet to another.

    Thank all so much for your help and time.


    HTML Code: 
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645
    Why are you using ActiveSheet?

    Why not use xSheet?
    Please Login or Register  to view this content.
    Last edited by Norie; 11-13-2007 at 03:19 PM.

  3. #3
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    300
    That was the problem. Thank you so much. Of course it would keep looping on the same sheet. By using Activesheet I was telling it to do that. Couldn't see the forest for the trees I guess.

    Again I thank you so very much.

    Eddie.

+ 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