+ Reply to Thread
Results 1 to 3 of 3

For Each Loop Executes code only on Active Sheet

  1. #1
    Registered User
    Join Date
    02-22-2016
    Location
    oregon
    MS-Off Ver
    excel 2013
    Posts
    15

    For Each Loop Executes code only on Active Sheet

    This is my first time using a loop, and I want to use an if statement within it. My code I have made so far only works on the active sheet.


    Please Login or Register  to view this content.
    Current Goal: Execute a piece of code with a loop on each sheet if a specified cell isn't blank.
    End Goal: Execute a piece of code on sheets 3-11 with a loop IF a specified cell has a value(not including formula that displays "")

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: For Each Loop Executes code only on Active Sheet

    May be
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: For Each Loop Executes code only on Active Sheet

    Thanks for marking the thread as solved and for the rep points
    Regards

+ 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. [SOLVED] vba excel - macro executes only when sheet is active
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2017, 05:50 PM
  2. VBA sheet loop only updating active open sheet
    By jona26b in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2016, 11:08 AM
  3. Code Executes Before Add-In Data Updates
    By OzTrekker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2014, 02:16 AM
  4. Subroutine loop -- Stops after first, active sheet
    By za20001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2011, 02:51 PM
  5. Code executes 8 times without loop statements. Why?
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2010, 05:02 PM
  6. MsgBox does not appear after the code executes.
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2010, 07:49 AM
  7. Vba Code Executes After Copying Sheet
    By RichG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2007, 09:09 PM

Tags for this Thread

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