Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to check if a worksheet exists in worksheet collection

Hi All,
I wanted to know if there is any method to check if a worksheet exists in worksheets collection.I want to check this by worksheet name.

Thanks in advance

Regards
Raghu

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 218
Default How to check if a worksheet exists in worksheet collection

See John Walkenbauch's function:

j-walk.com/ss/excel/tips/tip54.htm#func5


-----Original Message-----
Hi All,
I wanted to know if there is any method to check if a

worksheet exists in worksheets collection.I want to check
this by worksheet name.

Thanks in advance

Regards
Raghu

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to check if a worksheet exists in worksheet collection

Hi
one way

dim wks as worksheet
on error resume next
set wks = activeworkbook.worksheets("your_wks_name")
on error goto 0
if wks is nothing then
msgbox "worksheet does not exist"
end if


--
Regards
Frank Kabel
Frankfurt, Germany

"Raghunandan" schrieb im
Newsbeitrag ...
Hi All,
I wanted to know if there is any method to check if a worksheet

exists in worksheets collection.I want to check this by worksheet name.

Thanks in advance

Regards
Raghu


Reply
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
check if worksheet exists joeeng Excel Worksheet Functions 3 September 7th 05 06:49 PM
Check whether a worksheet exists already clui[_6_] Excel Programming 2 December 3rd 03 05:19 PM
Worksheet Exists... James Weaver Excel Programming 3 October 6th 03 02:56 PM
How can I tell if a worksheet exists? Robert Stober Excel Programming 5 October 3rd 03 01:00 AM
check if worksheet exists Craig Wilks Excel Programming 2 July 10th 03 04:07 AM


All times are GMT +1. The time now is 10:28 PM.

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

About Us

"It's about Microsoft Excel"