Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
vba code wanted
Hi
when i enter an item in the sale report (table in shhet1), i want th same item quantity deducted form a list in sheet2 in the same workbook i have trying so far................ Could you please provide me with a vba code does this jo -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
vba code wanted
Hi
Sure. Rightclick the sheet tab of shhet1, choose View Code, paste this in: Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next If IsNumeric(Target.Value) Then _ Sheets("Sheet2").Range("A1").Value = _ Sheets("Sheet2").Range("A1").Value - Target.Value End Sub Now any number you enter in a cell in shhet1 will be deducted from the value in Sheet1 A1. (Note that you can't undo it.) HTH. Best wishes Harald "helmekki " skrev i melding ... Hi when i enter an item in the sale report (table in shhet1), i want the same item quantity deducted form a list in sheet2 in the same workbook i have trying so far................ Could you please provide me with a vba code does this job --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
vba code wanted
As usual, you should show us your efforts for comments. You can do this with
a worksheet_change event, finding the target on the other sheet and having the offseted value less than before by the amount entered in the target cell. -- Don Guillett SalesAid Software "helmekki " wrote in message ... Hi when i enter an item in the sale report (table in shhet1), i want the same item quantity deducted form a list in sheet2 in the same workbook i have trying so far................ Could you please provide me with a vba code does this job --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help Wanted | Excel Worksheet Functions | |||
VBA Code wanted for Excel | Excel Discussion (Misc queries) | |||
Just wanted to say thanks! | Excel Discussion (Misc queries) | |||
urgent vba code wanted | Excel Programming | |||
Licence help wanted | Excel Programming |