Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I need to scroll down column C until it finds "Grand Total". Afterwards make the value of J2 equal to the value of the cell on the same row as "Grand Total", but column P. Thanks in advance for the help. Regards, John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
give this a try
Sub test() Dim rngfound As Range Dim ws As Worksheet Set ws = Worksheets("Sheet1") With ws.Columns("C") Set rngfound = .Find("Grand Total", lookat:=xlWhole, LookIn:=xlValues) End With If Not rngfound Is Nothing Then With ws .Range("J2") = .Range("P" & rngfound.Row).Value End With End If End Sub -- Gary "nabboo22" wrote in message ... Hello I need to scroll down column C until it finds "Grand Total". Afterwards make the value of J2 equal to the value of the cell on the same row as "Grand Total", but column P. Thanks in advance for the help. Regards, John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating a cell reference | Excel Programming | |||
calculating hours in one cell | Excel Worksheet Functions | |||
Calculating from last inputted cell | New Users to Excel | |||
Calculating cell references | Excel Programming | |||
Exclude a cell from calculating | Excel Worksheet Functions |