#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default v lookup

Is thre a way that you can do vlookup formula in a workbook in that it checks
for data from a hidden workshhet in a workbook.I have also created a userform
but after it hides I would want to be called when a buttun is clicked as when
the userform is displayed on the screen you can not edit the worksheet
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default v lookup

SORRY FOR THE MISTYPE.I MEANT VLOOKUP FORMULA THROUGH A MACRO

"sonto" wrote:

Is thre a way that you can do vlookup formula in a workbook in that it checks
for data from a hidden worksheet in a workbook.I have also created a userform
but after it hides I would want to be called when a buttun is clicked as when
the userform is displayed on the screen you can not edit the worksheet

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default v lookup

Excel and VBA can both access hidden worksheets.

In code:

dim res as variant 'could be an error
dim LookUpRng as range
dim myStr as string

with worksheets("Hiddenworksheetnamehere")
set lookuprng = .range("a:e")
end with

mystr = "Somevaluetomatch"

'false for an exact match
res = application.vlookup(mystr, lookuprng, 2, false)

if iserror(res) then
'no match found
else
msgbox res
end if

=======

Are you trying to design an data entry input form?

If yes, you may want to look at excel's built in version:
Data|Form (in xl2003 menus)

If that's not enough...
You could look at John Walkenbach's enhanced data form:
http://j-walk.com/ss/dataform/index.htm

The source code is available for a small fee ($20 USA, IIRC). So you can modify
it as much as you want.

And if you want to design your own:

Debra Dalgleish shares some tips:
http://contextures.com/xlUserForm01.html



sonto wrote:

Is thre a way that you can do vlookup formula in a workbook in that it checks
for data from a hidden workshhet in a workbook.I have also created a userform
but after it hides I would want to be called when a buttun is clicked as when
the userform is displayed on the screen you can not edit the worksheet


--

Dave Peterson
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
lookup help. lookup result based on data in 2 columns lcc Excel Worksheet Functions 3 April 6th 10 01:20 PM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM


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