+ Reply to Thread
Results 1 to 6 of 6

Want to apply code to all sheets available in workbook except two sheets with fast working

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Want to apply code to all sheets available in workbook except two sheets with fast working

    hi,

    i am using below to auto file and set size of rows and column

    but i want to apply this code to all sheets except two sheets 1 = "OF" and 2 = "haroon"


    code is

    Please Login or Register  to view this content.
    thanx
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Want to apply code to all sheets available in workbook except two sheets with fast wor

    How can you possibly have gotten to 1324 posts in here without coming across 'for each sheet in sheets' before?

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Want to apply code to all sheets available in workbook except two sheets with fast wor

    Like this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to apply code to all sheets available in workbook except two sheets with fast wor

    Perfect Bakerman2

    thank you once again

    u did, what i want

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Want to apply code to all sheets available in workbook except two sheets with fast wor

    Another:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Want to apply code to all sheets available in workbook except two sheets with fast wor

    @ HaroonSid

    You' re welcome and thanks for rep+.

    @ John

    Please Login or Register  to view this content.
    will go into debug since column A columnwidth is set to 0 by code.

+ 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. Code to delete sheets and rename sheets in a protected workbook?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2011, 03:02 AM
  2. Apply one action to all sheets in workbook
    By mitelkm in forum Excel General
    Replies: 2
    Last Post: 04-11-2007, 04:55 PM
  3. Replies: 6
    Last Post: 03-29-2006, 07:50 AM
  4. [SOLVED] How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook?
    By Dmitry in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2006, 07:50 AM
  5. Replies: 6
    Last Post: 03-29-2006, 07:50 AM
  6. run code on opening workbook and apply code to certain sheets
    By Jane in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2005, 05:05 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