Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default check if formula parameter is a cell-adress

Hi,

i have a dialog in which the user creates a formula with a cell range as
parameter (e.g. A1)
How can i check if the input of th euser is a valid cell range and not text
or anything else?

Thanks

Jens
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default check if formula parameter is a cell-adress

Try creating a range

On Error Resume Next
Set myRange = Range(user_input)
On Error Goto 0
If Not myRange Is Nothing Then
'ok
End If

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"kikde" wrote in message
...
Hi,

i have a dialog in which the user creates a formula with a cell range as
parameter (e.g. A1)
How can i check if the input of th euser is a valid cell range and not

text
or anything else?

Thanks

Jens



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
Excel Formula for Single Cell Adress Manyfaces Excel Worksheet Functions 2 June 8th 07 08:04 PM
SUM using results from an Adress-formula Langbraten Excel Discussion (Misc queries) 3 March 31st 06 01:01 PM
Excel2000: How to check for Optional parameter=Nothing Arvi Laanemets Excel Programming 10 April 27th 05 06:13 PM
VBA: Find and adress cell Maria[_7_] Excel Programming 4 March 17th 05 04:25 PM
Adress formula nested in an IF... SpeeD72 Excel Programming 2 May 1st 04 03:06 AM


All times are GMT +1. The time now is 02:00 AM.

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"