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: 18
Default trouble comparing a value in a text box with a variable

i've got a userform with a text box.
when the user inputs numerical data in the text box, i need the macro
to compare that number with a number attached to a variable.

both the text box number and the variable numbers match, but the macro
is telling me they don't. i believe it's because the textbox is
formatted as text and not as a value. how do i make the text in the
box read as a number so that i can compare with a variable?

the text box is named "checks" i tried:

if checks.text = x then .......
and
if checks.value = x then.......

but neither work.

thanks in advance,
jasonk
 
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
Having trouble getting MATCH to work with a variable lookup array Chuck M Excel Worksheet Functions 3 August 20th 08 11:45 PM
Trouble comparing to subtotals jjonesrealtor Excel Programming 3 July 17th 05 04:36 AM
variable trouble Kieran1028[_13_] Excel Programming 8 November 22nd 04 07:06 PM
Trouble with variable type Ken McLennan[_3_] Excel Programming 2 June 2nd 04 08:04 AM
Trouble setting variable as filename with date Elby Excel Programming 2 February 21st 04 03:05 PM


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