Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code to go to last row (next blank row)

Hi all,
I would like to create a command botton (macro) that would bring th
user to the last row (which is typically the next blank row) so the
can input data in that row.

I am stuck...thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Code to go to last row (next blank row)

Hi
maybe the shortcut CTRL+END is all you need (move the cursor to the
last row with data)

Frank
Hi all,
I would like to create a command botton (macro) that would bring the
user to the last row (which is typically the next blank row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Code to go to last row (next blank row)


ActiveCell.SpecialCells(xlLastCell).Select

-----Original Message-----
Hi all,
I would like to create a command botton (macro) that

would bring the
user to the last row (which is typically the next blank

row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Code to go to last row (next blank row)

miker

Sub findbottom()
Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp) _
.Offset(1, 0).Activate
End Sub

Will select first blank row below data in Column A.

Note: excludes any blank rows interspersed throughout above the last row with
data because it starts from the bottom of the column and checks upward.

Gord Dibben Excel MVP

On Sat, 7 Feb 2004 15:39:52 -0600, miker1999
wrote:

Hi all,
I would like to create a command botton (macro) that would bring the
user to the last row (which is typically the next blank row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code to go to last row (next blank row)

if the determination can be made on column A

cells(rows.count,1).end(xlup)(2).Select

--
Regards,
Tom Ogilvy


miker1999 wrote in message
...
Hi all,
I would like to create a command botton (macro) that would bring the
user to the last row (which is typically the next blank row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/





  #6   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Code to go to last row (next blank row)

Maybe one row after?, for the "next blank row":

ActiveCell.SpecialCells(xlLastCell).offset(1,0).Se lect

--
Rgds
Max
xl 97
----------------------------------
Use xdemechanik <atyahoo<dotcom for email
-----------------------------------------
"mern" wrote in message
...

ActiveCell.SpecialCells(xlLastCell).Select

-----Original Message-----
Hi all,
I would like to create a command botton (macro) that

would bring the
user to the last row (which is typically the next blank

row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/

.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code to go to last row (next blank row)

this can be quite unreliable.

--
Regards,
Tom Ogilvy


Max wrote in message
...
Maybe one row after?, for the "next blank row":

ActiveCell.SpecialCells(xlLastCell).offset(1,0).Se lect

--
Rgds
Max
xl 97
----------------------------------
Use xdemechanik <atyahoo<dotcom for email
-----------------------------------------
"mern" wrote in message
...

ActiveCell.SpecialCells(xlLastCell).Select

-----Original Message-----
Hi all,
I would like to create a command botton (macro) that

would bring the
user to the last row (which is typically the next blank

row) so they
can input data in that row.

I am stuck...thanks!


---
Message posted from http://www.ExcelForum.com/

.





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code to go to last row (next blank row)

Thank you all. I went with Tom's Suggestion since I had conditiona
formatting and formulas through the "empty" rows...

Thank you all for replying

--
Message posted from http://www.ExcelForum.com

  #9   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Code to go to last row (next blank row)

Noted with thanks, Tom !

--
Rgds
Max
xl 97
----------------------------------
Use xdemechanik <atyahoo<dotcom for email
-----------------------------------------
"Tom Ogilvy" wrote in message
...
this can be quite unreliable.

--
Regards,
Tom Ogilvy


Max wrote in message
...
Maybe one row after?, for the "next blank row":

ActiveCell.SpecialCells(xlLastCell).offset(1,0).Se lect



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
Auto format blank rows using code Marie Bayes Excel Discussion (Misc queries) 6 April 29th 09 06:09 PM
VBA code to hide blank rows ub Excel Worksheet Functions 4 July 31st 08 01:44 PM
VBA Code- Copy & Paste in Blank Range Youlan Excel Discussion (Misc queries) 9 March 27th 08 03:22 PM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents BenS Excel Discussion (Misc queries) 3 June 29th 07 12:20 AM
Code works 1st time then Type Mismatch when checking for not blank cells Colleyville Alan Excel Programming 3 February 6th 04 05:21 AM


All times are GMT +1. The time now is 06:46 AM.

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

About Us

"It's about Microsoft Excel"