Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default 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
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
Is there a way to show something similiar to treeviews in EXCEL (Not user-forms) ? Radu Excel Discussion (Misc queries) 3 December 4th 06 03:05 PM
User forms in Excel Eric Excel Programming 3 February 11th 05 06:10 PM
New user in need of assistance excel pop-ups, forms, +more!! Ken Macksey New Users to Excel 4 January 15th 05 03:18 PM
Excel 2003 hangs with dates in user forms hlask Excel Programming 0 June 3rd 04 09:21 AM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


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