+ Reply to Thread
Results 1 to 5 of 5

Marco keeps looping through each sheet

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Marco keeps looping through each sheet

    The macro I have below keeps looping through each sheet, albeit its what the macro was designed to do, however, I want it to cycle through each sheet 'silently' until it has cycled through each sheet and then present the msgbox "unable to locate"

    Here is the code that I am using currently:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Marco keeps looping through each sheet

    Hi klturi,

    Perhaps some VBA at the top of your code like:

    Application.ScreenUpdating = False would make it "silent"?
    See an example at:
    http://www.excely.com/excel-vba/screen-updating.shtml
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Marco keeps looping through each sheet

    Quote Originally Posted by MarvinP View Post
    Hi klturi,

    Perhaps some VBA at the top of your code like:

    Application.ScreenUpdating = False would make it "silent"?
    See an example at:
    http://www.excely.com/excel-vba/screen-updating.shtml
    I tried using both screenupdating and displayalerts but both failed to prevent the screen from giving the message for each sheet in the workbook.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Marco keeps looping through each sheet

    Hi klturi,

    Is this closer to what you need:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Marco keeps looping through each sheet

    So, almost immediately after I posted my last response I found a thread on a competing forum that had the exact same scenario, very code, but was able to get the job done.

    Not sure if its deemed acceptable to post the link so I will omit it for now.

+ 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. assign marco to specific sheet name
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2014, 11:34 AM
  2. Help with marco for darts sheet
    By DJRyan25 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-09-2014, 05:54 PM
  3. Replies: 0
    Last Post: 09-10-2013, 08:17 AM
  4. looking for marco to pull information from different sheet
    By zbyke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2013, 02:33 AM
  5. [SOLVED] Help with Looping a copy and paste marco
    By Robert110 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-26-2013, 11:02 AM
  6. Marco for to go to next sheet
    By SURESH G in forum Excel General
    Replies: 7
    Last Post: 03-07-2012, 04:31 AM
  7. Help With Sheet Compare Marco I Trying To Use
    By gaspower in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2008, 12:50 PM

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