Advertisement

06.15.2005 at 10:08AM PDT, ID: 21459202
[x]
Attachment Details

macro: Lookup value from sheet1 in sheet2 and return the row position on sheet2

Asked by elsia in Microsoft Excel Spreadsheet Software

Tags: , ,

Hi experts,

I am creating a macro to display a list of document numbers based on the transaction code selected from a combo box. The list is displayed on the same sheet (Sheet1).

For each list displayed, there is a button for user to click to view more details. When this button is clicked, the macro should direct user to a new sheet (Sheet2), pointing to the corresponding row that contains the document number. (The new sheet contains all document numbers and their details)

Currently, I am able to direct user to the new sheet (using Sheet2.Activate) but I do not know the way to point to the correct location based on the document number from Sheet1. My guess is to use VLOOKUP.. i tried vlookup(strTrans,Sheet2!A1:Sheet2!A43,1) but it has compile error saying "Expected: list separator or )"

 I am using Visual Basic Editor to code. I am a beginner in developing macro. Please help.. Start Free Trial
[+][-]06.15.2005 at 10:12AM PDT, ID: 14223565

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2005 at 10:20AM PDT, ID: 14223653

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: macro, lookup, vlookup
Sign Up Now!
Solution Provided By: byundt
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.16.2005 at 02:10AM PDT, ID: 14229255

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.16.2005 at 04:46AM PDT, ID: 14229971

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2005 at 07:21PM PDT, ID: 14949623

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.28.2005 at 09:43AM PDT, ID: 14976601

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32