Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jkt jkt is offline
external usenet poster
 
Posts: 3
Default Determine if Named Range exists in Worksheet

Any suggestions on writing code to look for a named range within a worksheet
and if it exists, call a macro? Otherwise if named range is not found,
continue with currenty code.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Determine if Named Range exists in Worksheet

dim rMyrange as range

on error resume next
set rMyrange=Range("MyRangeName")
on error goto 0

if not rMyRange is Nothing then call MyMacro


HTH
--
AP

"jkt" a écrit dans le message de news:
...
Any suggestions on writing code to look for a named range within a
worksheet
and if it exists, call a macro? Otherwise if named range is not found,
continue with currenty code.



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 named range exists! steve_doc Excel Programming 2 April 29th 06 11:56 PM
Determining if a named range exists a Excel Programming 2 January 5th 06 01:39 PM
Validate Named Range Exists John Jost Excel Programming 5 December 5th 05 08:17 PM
how to tell if a named range exists Gixxer_J_97[_2_] Excel Programming 2 June 1st 05 07:38 PM
easy way to test if a Named Range exists Andrew Bauer Excel Programming 4 July 10th 03 07:32 PM


All times are GMT +1. The time now is 11:54 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"