Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Target.Address syntax
Can someone tell me how to correct my syntax in the following code? Right now it does nothing. Thanks!! Private Sub Worksheet_Change(ByVal Target As Range) Dim l_LastRow As Long l_LastRow = Cells.Find(What:="*", After:=[A1], SearchDirection:=xlPrevious).Row For x = 3 To (l_LastRow - 1) Step 1 If Target.Address = Cells(x, 4) Then Cells(x, 5).Value = Cells(x, 5).Value * Cells(x, 4).Value End If Next x End Sub -- Coolboy55 ------------------------------------------------------------------------ Coolboy55's Profile: http://www.excelforum.com/member.php...o&userid=26508 View this thread: http://www.excelforum.com/showthread...hreadid=397926 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert more than 1 Row Syntax | Excel Worksheet Functions | |||
Rate syntax | Excel Discussion (Misc queries) | |||
WHAT SYNTAX IS USED TO ROUND A 4-DIGIT NUMBER TO THE NEAREST THOUS | Excel Discussion (Misc queries) | |||
Vlookup Syntax Error | New Users to Excel | |||
Previous Post - Correct Syntax Query | Excel Worksheet Functions |