+ Reply to Thread
Results 1 to 8 of 8

Macro change needed to skip some sheets

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Macro change needed to skip some sheets

    I need to alter the following macro to skip these sheets

    "Status", "Compile", "Cer-Burdens"

    Can you help?

    HTML Code: 
    Last edited by caliskier; 10-04-2015 at 04:32 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Macro change needed to skip some sheets

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Macro change needed to skip some sheets

    If you simply want to skip certain sheets, then see the following snippet of code.

    Please Login or Register  to view this content.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Macro change needed to skip some sheets

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    Thanks but I get "Object does not support this property or method error"

  5. #5
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Macro change needed to skip some sheets

    Quote Originally Posted by skywriter View Post
    If you simply want to skip certain sheets, then see the following snippet of code.

    Please Login or Register  to view this content.
    I loaded yours this way...

    HTML Code: 
    I get this error....
    "Object variable or with block variable not set", did i put it in the wrong place?

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Macro change needed to skip some sheets

    It needs to be inside the for loop because until then vWShts hasn't been set to any worksheets and also that line of code will only run once if it's before the loop.

    Please when you get an error don't just say you got an error. You got an error on a certain line and it's important to share which line of code caused the error. I'm pretty sure I know which one this time, but to help us better help you in the future, please keep that in mind.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Macro change needed to skip some sheets

    I just realized you changed the x I gave you in my code to S. When you do that you have to change all the x's to S's!

  8. #8
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Macro change needed to skip some sheets

    Quote Originally Posted by skywriter View Post
    It needs to be inside the for loop because until then vWShts hasn't been set to any worksheets and also that line of code will only run once if it's before the loop.

    Please when you get an error don't just say you got an error. You got an error on a certain line and it's important to share which line of code caused the error. I'm pretty sure I know which one this time, but to help us better help you in the future, please keep that in mind.
    Thank you, and I apologize about the code location, I will be more specific next time... Thanks again for your help, much appreciated.

+ 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] Macro needed to change a lot of tables at once
    By VincentNL in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-21-2014, 02:42 PM
  2. Summing of sheets macro needed.
    By rdelosh74 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2014, 01:15 PM
  3. Macro Needed for same font for all the sheets
    By phcteam2012 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2012, 11:21 AM
  4. Help with Macro, need it to skip a step if that step isn't needed
    By CDNcameron in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-23-2012, 02:34 PM
  5. Delete Sheets Macro needed!
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-31-2009, 11:34 PM
  6. Macro needed to Identify a data skip and add a space
    By GuruWannaB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 01:45 PM
  7. [SOLVED] Sheets Skip Macro
    By NICK in forum Excel General
    Replies: 2
    Last Post: 02-11-2005, 04:06 AM

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