+ Reply to Thread
Results 1 to 4 of 4

Want to apply condition to run a code

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

    Post Want to apply condition to run a code

    hi,

    i am using this code to hide my sheets...

    Please Login or Register  to view this content.
    but somethime Sheet Name "PrintOut" doesn't available. so this code is giving debug error

    i want condition that
    if sheet name "PrintOut" available then run this code other wise run below code

    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
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Want to apply condition to run a code

    Read Error handling in VBA

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

    Re: Want to apply condition to run a code

    found an answer

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Want to apply condition to run a code

    It would be more logical to actually handle the error correctly rather than essentially duplicating procedures (except for 1 line). Next week you add HIDE_ALL_SHEETS3?

+ 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. Only apply conditional formatting if a condition is met
    By maddogp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2015, 07:59 PM
  2. [SOLVED] How to condition apply week table against month.
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2015, 04:29 PM
  3. Want to link cell but condition apply
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-21-2014, 11:14 AM
  4. apply 2 condition formatting on the same row
    By anana in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-07-2013, 02:49 AM
  5. [SOLVED] I need to apply same condition formating in different rows
    By azhar.abidi in forum Excel General
    Replies: 8
    Last Post: 09-19-2012, 07:20 AM
  6. how to apply a condition for entire colomn
    By pavu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2012, 12:53 PM
  7. How to apply more than one IF condition in 1 cell
    By Cesar in forum Excel General
    Replies: 1
    Last Post: 12-18-2005, 08:25 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