Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to go to the last value
Hi. How do i create a macro that will go to the last value in a given
column? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to go to the last value
Hi,
This retuens the last value in column A Sub stantial() myvalue = Range("A" & Cells(Cells.Rows.Count, "A").End(xlUp).Row).Value End Sub This selects the last value on column A Sub stantial() Range("A" & Cells(Cells.Rows.Count, "A").End(xlUp).Row).Select End Sub Mike "tc" wrote: Hi. How do i create a macro that will go to the last value in a given column? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to go to the last value
Hello
Use the macro recorder: Tools, Macro, New Macro Input a name for your macro Validate with OK Press both Ctrl and End keys Stop the recorder Check the vba code written in the new module created. HTH Cordially Pascal "tc" a écrit dans le message de news: ... Hi. How do i create a macro that will go to the last value in a given column? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to go to the last value
to select the last occupied cell in column A:
n = Cells(Rows.Count, "A").End(xlUp).Row Cells(n, "A").Select -- Gary''s Student - gsnu200744 "tc" wrote: Hi. How do i create a macro that will go to the last value in a given column? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |