Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having a problem with the LastRow function. It is
working only in certain places. I am trying to use this function on a summary page that varies everytime I import a file. From this summary page, I am creating a chart. I have tried various ways of doing this with no luck. Any Suggestions? My code is below. Thanks in advance! Anne Dim LastRow As Long Dim wks As Worksheet Dim Row_Num As Integer Range("A6").Select Row_Num = ActiveCell.Row Set wks = ActiveSheet LastRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row With wks .Range("A6").FormulaR1C1 = "=RC[5]/LastRow" .Range("A6").AutoFill _ Destination:=.Range("A6:A" & LastRow), Type:=xlFillCopy End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lastrow | Excel Worksheet Functions | |||
Lastrow | Excel Worksheet Functions | |||
HELP Lastrow Range | Excel Discussion (Misc queries) | |||
LastRow of Data | Excel Worksheet Functions | |||
Lastrow in Range | Excel Discussion (Misc queries) |