Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 code will take you to the first emty cell in column A and once there you can paste your record you can change the column in the cod -- davesexce ----------------------------------------------------------------------- davesexcel's Profile: http://www.excelforum.com/member.php...fo&userid=3170 View this thread: http://www.excelforum.com/showthread.php?threadid=51674 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Programming for Excel | New Users to Excel | |||
Visual Basic programming | Excel Discussion (Misc queries) | |||
Help! complicated programming visual basic | Excel Programming | |||
A few problems Programming to the Visual Basic Editor | Excel Programming | |||
Visual Basic Programming Difficulties with linking Userforms | Excel Programming |