#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Userforms

Hello! I am new to this newsgroup so, I hope I do this right. O.k, my
question is:
I have a userform in Excel, and the textbox, once a value is entered, goes
to a cell in the sheet, and in the sheet, there are vlookup functions to
lookup the value of that same cell. textbox is going to cell B1, and B1 is a
lookup value for other functions in the sheet. This is what happens: once I
use my userform and enter a value in B1, the vlookups come back as "#N/A",
but if I enter a value without using the userform, the vlookups work. B1 is
formatted to a general number, if that helps. Help!?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Userforms

the value in B1 is probably being stored as text rather than as a number.
You can check by going to another cell and doing

=istext(B1)

You can control this by using an event to write the value to the cell

Worksheets("Sheet1").Range("B1").Value = cdbl(Textbox1.Text)


Which event would depend on where the control is located.

--
Regards,
Tom Ogilvy


"desperate" wrote in message
...
Hello! I am new to this newsgroup so, I hope I do this right. O.k, my
question is:
I have a userform in Excel, and the textbox, once a value is entered, goes
to a cell in the sheet, and in the sheet, there are vlookup functions to
lookup the value of that same cell. textbox is going to cell B1, and B1

is a
lookup value for other functions in the sheet. This is what happens: once

I
use my userform and enter a value in B1, the vlookups come back as "#N/A",
but if I enter a value without using the userform, the vlookups work. B1

is
formatted to a general number, if that helps. Help!?



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
I need some help with userforms T.c.Goosen1977 Excel Discussion (Misc queries) 0 June 30th 06 09:27 AM
userforms again... Jo[_4_] Excel Programming 3 September 21st 03 12:31 AM
userforms Jo[_4_] Excel Programming 2 September 17th 03 10:35 PM
Userforms Gary[_8_] Excel Programming 1 August 18th 03 03:26 PM
Userforms Henry[_4_] Excel Programming 0 August 9th 03 11:37 PM


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