Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, I have a line of code that identifies the last active row of a worksheet, ready for a new record to be added. Code: -------------------- Range("A65536").End(xlUp).Offset(1, 0).Select -------------------- For example purposes assume that that new row is row 30. How do I then tell Excel to move to column J in row 30, not stay in column A? I cant just change the range selection to J because not all rows have inputs in row J but all new entries do have a column A entry. -- Alec H ------------------------------------------------------------------------ Alec H's Profile: http://www.excelforum.com/member.php...o&userid=31042 View this thread: http://www.excelforum.com/showthread...hreadid=522139 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Find first empty row in a column Sub Tst2() Dim varnbrows As Double Range("A1").Select varnbrows = Selection.CurrentRegion.Rows.Count If Selection.Value = "" Then Exit Sub ElseIf Selection.Offset(1, 0).Value = "" Then Selection.Offset(1, 0).Select Else Selection.Offset(varnbrows, 0).Select End If End Sub this will take you to the first empty cell in column A Change the column by changing Range("A1") to whatever column you prefer -- davesexcel ------------------------------------------------------------------------ davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708 View this thread: http://www.excelforum.com/showthread...hreadid=522139 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() :) Thank you -- Alec H ------------------------------------------------------------------------ Alec H's Profile: http://www.excelforum.com/member.php...o&userid=31042 View this thread: http://www.excelforum.com/showthread...hreadid=522139 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to hide blank cells in a range | Excel Discussion (Misc queries) | |||
Determine whether a value is in a range of cells | Excel Discussion (Misc queries) | |||
how to format only a specific character or number in each cell withina range of cells | Excel Worksheet Functions | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Counting empty cells within a range of cells | New Users to Excel |