#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro


I'm trying to write a macro that automatically takes me to the nex
available row to enter data in my "Orders" worksheet in Column A
Sounds simple, but I'm doing something wrong. Thanks for any help!
Ric

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Macro

have you tried x = range("A65536").end(xlup).row +1
this should assign x to the first blank row looking from
the bottom of the sheet.

Hope this helps
Jase
-----Original Message-----

I'm trying to write a macro that automatically takes me

to the next
available row to enter data in my "Orders" worksheet in

Column A.
Sounds simple, but I'm doing something wrong. Thanks for

any help!
Rich


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro

Rich,

Try this simple macro out. I use this frequently and
usually assign it to a button I've placed in my header
row. If you have your header row in a freeze pane, the
button will always be available and each time you click on
it, the macro will take you to the next "available" or
empty row found in the active cell's column. Let me know
if you have any questions or problems with it.

Sub Next_Open_Row()
Dim iRow As Long
For iRow = ActiveCell.Row + 1 To 65530
If IsEmpty(Cells(iRow, ActiveCell.Column)) Then
Cells(iRow, ActiveCell.Column).Select
Exit Sub
End If
Next iRow
End Sub

-----Original Message-----

I'm trying to write a macro that automatically takes me

to the next
available row to enter data in my "Orders" worksheet in

Column A.
Sounds simple, but I'm doing something wrong. Thanks for

any help!
Rich


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"