Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I use the following to get the last row number used lastUsedRow = Worksheets("Sheet1").UsedRange.Row + Worksheets("Sheet1").UsedRange.Rows.Count - 1 How can I use the lastUsedRow variable so that I can make column F and the lastUsedRow varialbe the active cell. eg. lastUsedRow = 241 therefore I want F241 to become the active cell |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Newbie wrote:
Hi, I use the following to get the last row number used lastUsedRow = Worksheets("Sheet1").UsedRange.Row + Worksheets("Sheet1").UsedRange.Rows.Count - 1 How can I use the lastUsedRow variable so that I can make column F and the lastUsedRow varialbe the active cell. eg. lastUsedRow = 241 therefore I want F241 to become the active cell Cells(lastUsedRow, 6).Activate -- Regards, Juan Pablo González |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try cells(lastUsedRow,"F").select -- Regards Frank Kabel Frankfurt, Germany Newbie wrote: Hi, I use the following to get the last row number used lastUsedRow = Worksheets("Sheet1").UsedRange.Row + Worksheets("Sheet1").UsedRange.Rows.Count - 1 How can I use the lastUsedRow variable so that I can make column F and the lastUsedRow varialbe the active cell. eg. lastUsedRow = 241 therefore I want F241 to become the active cell |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for your help.
I tried: cells(lastUsedRow,"F").select but get the error 1004 Select method of Range class failed and then I tried: Cells(lastUsedRow, 6).Activate but get the error 1004 Activate method of Range class failed Here is the code I have what am I doing wrong? lastUsedRow = ActiveSheet.UsedRange.Row + ActiveSheet.UsedRange.Rows.Count - 1 Cells(lastUsedRow, 6).Activate Thanks again for your help "Frank Kabel" wrote in message ... Hi try cells(lastUsedRow,"F").select -- Regards Frank Kabel Frankfurt, Germany Newbie wrote: Hi, I use the following to get the last row number used lastUsedRow = Worksheets("Sheet1").UsedRange.Row + Worksheets("Sheet1").UsedRange.Rows.Count - 1 How can I use the lastUsedRow variable so that I can make column F and the lastUsedRow varialbe the active cell. eg. lastUsedRow = 241 therefore I want F241 to become the active cell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to make identical cell datas active to allow changes | New Users to Excel | |||
how do i make a chart follow the active cell | Charts and Charting in Excel | |||
I HAVE SAY INFO ACROSS 10 COLUMNS. HOW TO MAKE THE COL-A CELL ACTIVE WHEN U HIT 'ENTER' | Excel Discussion (Misc queries) | |||
How do I make it so that the active cell follows the cursor keys? | Excel Discussion (Misc queries) | |||
How do I make the border of an active cell in Excel darker? | Excel Discussion (Misc queries) |