![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 122
|
What is the visual basic code that AFTER or WHEN enter has bee pressed in cell F5 THEN run this code
'Look for the ProductID in the Stock Table. StockWorkbook.Seek "=", ProductID 'When found, take the current quantity and subtract from it the sold quantity. If Not StockWorkbook.EOF Then StockWorkbook.Edit StockWorkbook!Quantity = StockWorkbook!Quantity - SalesWorkbook!Quantity StockWorkbook.Update ' End Sub thanks i really need this quick its in for friday!! |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 122
|
Cell F5 is just the total cost of the cell. Its got the formula D5*E5. Help plz!
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Sami
The ideas of my HTML Hype was to kill this feed as you have posted the same question twice, please let this post feed drop off the board, as people are anwering the other feed, its worthless to feed twop questions of the same subject no matter if thay are only similar or very close, stick to the one feed. Please That way you get the result you want, also dont keep adding Pze quotes as poople will flick the post, i moniotor feeds and so do some pals and we pledge to answer any unanswered posts.. in a best time poss so feer not, some answers will be there, but if only posters understand and know the answers. I know your young and so i am truly trying to help, i expect you to understand these commenmts...
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|