+ Reply to Thread
Results 1 to 2 of 2

How do i make an if then statement to determine if certain worksheets exists in workbook?

  1. #1
    Forum Contributor
    Join Date
    12-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    107

    How do i make an if then statement to determine if certain worksheets exists in workbook?

    My code analyzes the active sheet and vba will make a sheet named "analysis sheet" and put all the data there. The problem is when a sheet named "analysis sheet" already exists, it gives an error. How do i make excel detect (using an if then statement im guessing) if there is a sheet already named "analysis sheet"?

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: How do i make an if then statement to determine if certain worksheets exists in workbo

    Hi,
    Here's a way to do it :

    Please Login or Register  to view this content.
    or with a function :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ 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] determine if a formula exists within a cell
    By crowegreg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 02:37 AM
  2. Determine if UDF Exists
    By stonesfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2011, 03:42 PM
  3. [SOLVED] Determine if folder exists
    By Terry K in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2006, 01:30 PM
  4. Replies: 2
    Last Post: 04-27-2006, 08:55 AM
  5. Replies: 1
    Last Post: 10-06-2005, 08: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