Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to automatically take the last number in a column and use it in a
formula. The column is a growing list of daily stock prices so the last entry changes with each days update. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the SpecialCells method using the xlCellTypeLastCell constant.
YourRange.SpecialCells(xlCellTypeLastCell).Value Hope this helps. Bill Horton "dakotasky" wrote: I want to automatically take the last number in a column and use it in a formula. The column is a growing list of daily stock prices so the last entry changes with each days update. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, I tried that but it not going to the last cell of that column. Any
other suggestions? Also I may be doing it wrong trying to insert it into a formula. "William Horton" wrote: Try the SpecialCells method using the xlCellTypeLastCell constant. YourRange.SpecialCells(xlCellTypeLastCell).Value Hope this helps. Bill Horton "dakotasky" wrote: I want to automatically take the last number in a column and use it in a formula. The column is a growing list of daily stock prices so the last entry changes with each days update. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Where you want the last number from column A...
dim dblLastCell as double dblLastCell= cells(rows.count, "A").end(xlUp) msgbox dblLastCell -- HTH... Jim Thomlinson "dakotasky" wrote: Thanks, I tried that but it not going to the last cell of that column. Any other suggestions? Also I may be doing it wrong trying to insert it into a formula. "William Horton" wrote: Try the SpecialCells method using the xlCellTypeLastCell constant. YourRange.SpecialCells(xlCellTypeLastCell).Value Hope this helps. Bill Horton "dakotasky" wrote: I want to automatically take the last number in a column and use it in a formula. The column is a growing list of daily stock prices so the last entry changes with each days update. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Place Date in One column when entry is made in another column. | Excel Worksheet Functions | |||
Referencing the latest entry in a column | Excel Worksheet Functions | |||
Referencing the latest entry in a column | Excel Worksheet Functions | |||
Formula for Latest Entry For Each Month | Excel Discussion (Misc queries) | |||
how do I automatically sort a column on entry | Excel Discussion (Misc queries) |