Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 26th, 2004, 03:40 PM
Authorized User
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Look up value dependent on 2 other variables

Please forgive if this is a simple thing. I am VERY new to Excel VBA as most of my previous VBA work has been in Access. My problem is as follows:

I have a form with two combo boxes They are populated with the X and Y values of a hidden table/worksheet. Depending on the selected X and Y values, I would like to look-up the corresponding table value (in the hidden worksheet) and place this 'looked-up' value in a cell.

If I am unclear in my explanation, please let me know. Any help is always greatly appreciated.

Thanks,
Nick
 
Old September 22nd, 2004, 09:51 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you're looking for a simple solution. There is a vlookup function in Excel. You can use this to reference a range and return the value from a specified field even from a different file.



Quote:
quote:Originally posted by nkrukovsky
 Please forgive if this is a simple thing.  I am VERY new to Excel VBA as most of my previous VBA work has been in Access.  My problem is as follows:

I have a form with two combo boxes  They are populated with the X and Y values of a hidden table/worksheet.  Depending on the selected X and Y values, I would like to look-up the corresponding table value (in the hidden worksheet) and place this 'looked-up' value in a cell.

If I am unclear in my explanation, please let me know.  Any help is always greatly appreciated.

Thanks,
Nick





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dependent DropDown In DataGrid software_developer_kk ASP.NET 1.0 and 1.1 Professional 3 January 29th, 2007 03:13 AM
dependent select menu hastikeyvan Classic ASP Professional 3 November 10th, 2006 01:46 PM
dependent drop downs p2pMember ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 05:25 AM
dependent select menu hastikeyvan Dreamweaver (all versions) 1 February 27th, 2006 04:34 AM
dependent dropdown lists vivshah VS.NET 2002/2003 1 March 29th, 2004 05:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.