LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default check whether worksheet's there or not

Hi ya

I want to activate a certain Worksheet 'Results' using a macro. Becaus
I don't know for you whether it exists yet, I want to check that wit
an If-statement and then act accordingly (create the sheet if it's no
there yet). The expression below (.Activate) doesn't work, nor di
using 'Not Sheets(...) Is Nothing' but I look for something of thi
kind as I would like to avoid a loop to check for the sheets
existence


If (Sheets("Results").Activate) Then
...
Else
Sheets.Add
ActiveSheet.Name = "Results"
End If


Any ideas are highly appreciated, cheers!

fabaliciou

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can we map calender in to excel worksheet's cell. Anand Pasunoori Excel Discussion (Misc queries) 1 July 15th 09 05:44 PM
Small 1-2 on worksheet's left in Excel Paddy New Users to Excel 2 October 27th 06 05:56 PM
Cell to equal a worksheet's name David P. Excel Discussion (Misc queries) 3 June 11th 05 12:57 AM
Transforming a worksheet's functionality? Arlen Excel Discussion (Misc queries) 1 February 4th 05 10:57 PM
Compare Worksheet's Rich[_19_] Excel Programming 4 October 30th 03 04:26 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"