Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
User Forms and Excel Functions
I built a spreadsheet using the VLOOKUP function. I enter the search string into the chosen cell and then a table is searched and the matching string is returned. This is all done directly from the worksheet. How can I do the same thing from a field on a user form? How do I reference a function like VLOOKUP? I've been around programming for a while but just recently discovered VBA for Excel. -- sottsee ------------------------------------------------------------------------ sottsee's Profile: http://www.excelforum.com/member.php...o&userid=25243 View this thread: http://www.excelforum.com/showthread...hreadid=387345 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
User Forms and Excel Functions
In your code just set a variable to
x = WorksheetFunction.Vlookup(VALUE,Range("E35:L47"),2 ,TRUE) but qualify where the ranges and values are coming from. -- steveB Remove "AYN" from email to respond "sottsee" wrote in message ... I built a spreadsheet using the VLOOKUP function. I enter the search string into the chosen cell and then a table is searched and the matching string is returned. This is all done directly from the worksheet. How can I do the same thing from a field on a user form? How do I reference a function like VLOOKUP? I've been around programming for a while but just recently discovered VBA for Excel. -- sottsee ------------------------------------------------------------------------ sottsee's Profile: http://www.excelforum.com/member.php...o&userid=25243 View this thread: http://www.excelforum.com/showthread...hreadid=387345 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Is there a way to show something similiar to treeviews in EXCEL (Not user-forms) ? | Excel Discussion (Misc queries) | |||
User forms in Excel | Excel Programming | |||
New user in need of assistance excel pop-ups, forms, +more!! | New Users to Excel | |||
Excel 2003 hangs with dates in user forms | Excel Programming | |||
excel functions and User defined functions | Excel Programming |