Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Matching 2 Variables

Hello,

Could someone please help me with the following:

I wish to create a macro that does the following:

Asks via InputBoxes for user input.

1. One InputBox asks for a Stockcode (a nine digit number)
2. The other InputBox asks for a Recommend Finalisation As (which will be
either:WOC or BOC)

The Stockcode needs to be validated to ensure that it is a number and has 9
digits.

I have formatted the Stockcode column (column E) as Text, because many of
our Stockcodes are preceded by zeros.

Then a double-Lookup function to lookup the Stockcode in column E and the
Recommend Finalisation As in column F.

If there is a match, then to list it on a MessageBox.

I need it to lookup the entire spreadsheet (named SA Register) because there
may be more than one instance where a match will be found.

Any help would be greatly appreciated,

Kind regards,

Chris.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Matching 2 Variables

Chris,

I was looking at your request. What do you intened to do with the inf
once found? It problely would be easiser to use a userform for the fin
function. Ive started a pgm using the userform. So if you let me kno
what you want to happen I'll finish it and send it to you.

Charle

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Matching 2 Variables

Thanks Charles for your reply.

Fortunately, a couple of other kind people like yourself have solved m
problem.

Kind regards,

Chris :

--
Message posted from http://www.ExcelForum.com

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
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Matching identical data using data only once in the matching proce Robert 1 Excel Discussion (Misc queries) 1 June 29th 07 04:22 PM
Help with Matching Text Fields - Then Moving the Matching Cells Side by Side [email protected] Excel Discussion (Misc queries) 2 June 11th 07 02:38 PM
Three Variables George Excel Worksheet Functions 1 July 8th 06 07:47 PM
Matching data and linking it to the matching cell yvonne a via OfficeKB.com Links and Linking in Excel 0 July 13th 05 07:30 PM


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