Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the VBA command to find the last cell range on a worksheet?
Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Last()
MsgBox "Last cell is " & _ ActiveSheet.UsedRange.SpecialCells(xlLastCell).Add ress End Sub Jon Phil Hunt wrote: What is the VBA command to find the last cell range on a worksheet? Thanks -- 42°57N 81°16W |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That was quick. I may have more question later. This is my first time
programming Excel "Crash" wrote in message ... Sub Last() MsgBox "Last cell is " & _ ActiveSheet.UsedRange.SpecialCells(xlLastCell).Add ress End Sub Jon Phil Hunt wrote: What is the VBA command to find the last cell range on a worksheet? Thanks -- 42°57N 81°16W |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set rng = Cells.SpecialCells(xlCellTypeLastCell)
finds the lower right corner of the usedrange. It may not be what you expect however. -- Regards, Tom Ogilvy "Phil Hunt" wrote in message ... What is the VBA command to find the last cell range on a worksheet? Thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guy. works great.
"Phil Hunt" wrote in message ... What is the VBA command to find the last cell range on a worksheet? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
Find if any cell in range is above Zero | Excel Discussion (Misc queries) | |||
Using VB to find next cell in range | Excel Programming | |||
Using VB to find next cell in range | Excel Programming |