Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Comparing & Retrieving Data From other worksheet


Hi,

I need help on how to write a vba code for this problem.
I have Sheet1 with 3 columns; Item_Number,Qty_Left,Action_Required an
Sheet2 with Part_Number,Company,On_Hand. Under Company ha
CompanyA,CompanyB,CompanyC. The result is returned unde
Action_Required in Sheet1

My question is:-

IF Qty_Left.Sheet1 < 0 THEN
MATCH (Item_Number.Sheet1) WITH (Part_Number.Sheet2) WHER
(Company.Sheet2) < CompanyA
IF (On_Hand.Sheet2) = 0 THEN
Display Message
"Order"
ELSE
Display Message = "Order from" + Company.Sheet
(depends on which company has more On_Hand; either CompanyB o
CompanyC)
END IF
ELSE
Display Message = "OK"
END IF

So, my problem is I don't know how to write vba code to solve thi
problem. Can somebody help me...?? 10

--
cba32
-----------------------------------------------------------------------
cba321's Profile: http://www.excelforum.com/member.php...fo&userid=1606
View this thread: http://www.excelforum.com/showthread.php?threadid=27519

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
Retrieving data into worksheet from another worksheet in same work Tasha Excel Discussion (Misc queries) 2 August 6th 09 03:51 PM
Comparing Data and Updating a worksheet rbiggs Excel Discussion (Misc queries) 0 December 12th 06 12:52 AM
Excel worksheet retrieving data from Access [email protected] Links and Linking in Excel 1 May 8th 06 12:32 AM
Searching and Retrieving data from a Worksheet Larry Snyder Excel Worksheet Functions 1 March 1st 05 09:41 PM
Help on comparing two data on two worksheet kphan78 Excel Programming 1 April 1st 04 10:08 PM


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