Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default selectionchanged event

hi guys
i have a following code
dim t_string as string
t_string= target.value
target.clearcontents
target.value=iif(isnumeric(t_string(t_string),cdbl (t_string)/100000,t_string)
i am doing this to avoid circular reference
but i am getting error "type mismatch"
please help
--
hemu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default selectionchanged event

What do you think/want this line to do

target.value=iif(isnumeric(t_string(t_string),cdbl (t_string)/100000,t_string)


in words defining the problem.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hemant_india" wrote in message
...
hi guys
i have a following code
dim t_string as string
t_string= target.value
target.clearcontents
target.value=iif(isnumeric(t_string(t_string),cdbl (t_string)/100000,t_string)
i am doing this to avoid circular reference
but i am getting error "type mismatch"
please help
--
hemu



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default selectionchanged event

hi,
strings are not numeric. declare T_string a long or appropreate.

regards
FSt1

"Hemant_india" wrote:

hi guys
i have a following code
dim t_string as string
t_string= target.value
target.clearcontents
target.value=iif(isnumeric(t_string(t_string),cdbl (t_string)/100000,t_string)
i am doing this to avoid circular reference
but i am getting error "type mismatch"
please help
--
hemu

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
Click event on menu item is lost after first time firing of the event [email protected] Excel Programming 1 April 2nd 07 01:25 PM
MsgBox in Enter event causes combobox not to run Change event Richard Excel Programming 0 March 6th 06 02:52 PM
How to trap delete row event and hide column event? Alan Excel Programming 3 April 26th 05 04:25 PM
user form-on open event? keydown event? FSt1[_3_] Excel Programming 2 August 5th 04 02:26 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 06:41 AM.

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"