PC Review


Reply
Thread Tools Rate Thread

A basic Macro: going to a particular Worksheet and then selecting thefirst blank cell in column A

 
 
Mike C
Guest
Posts: n/a
 
      25th Feb 2008
Hello all

Could someone please let me know what would be the code for simply
jumping to worksheet A (i.e., Sheet4, and then selecting (i.e.,
placing the cursor in) the first blank cell at the bottom of column
A.

Thanks!
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      25th Feb 2008
hi
worksheet A or sheet 4? no matter... replace with appropriate name if needed.

Sheets("A").Activate
'''''select from top down''''''''''
Range("A1").End(xlDown).Offset(1, 0).Select
'''''Select from top up'''''''''
Range("A65536").End(xlUp).Offset(1, 0).Select

regards
FSt1
"Mike C" wrote:

> Hello all
>
> Could someone please let me know what would be the code for simply
> jumping to worksheet A (i.e., Sheet4, and then selecting (i.e.,
> placing the cursor in) the first blank cell at the bottom of column
> A.
>
> Thanks!
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      25th Feb 2008
Option Explicit
Sub Testme()
with worksheets("sheet9999")
application.goto .cells(.rows.count,"A").end(xlup).offset(1,0)
end with
End Sub

Mike C wrote:
>
> Hello all
>
> Could someone please let me know what would be the code for simply
> jumping to worksheet A (i.e., Sheet4, and then selecting (i.e.,
> placing the cursor in) the first blank cell at the bottom of column
> A.
>
> Thanks!


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro that will paste a number in first blank cell of a column asebes Microsoft Excel Misc 1 28th Dec 2009 05:34 PM
Need macro to move to first blank cell in column Joe M. Microsoft Excel Misc 6 16th Dec 2009 10:22 PM
Select next blank cell in column, before running macro BadRasta Microsoft Excel Programming 2 11th Jul 2009 12:28 PM
Selecting the first blank cell in a column =?Utf-8?B?QlpleWdlcg==?= Microsoft Excel Programming 1 17th Apr 2007 05:41 PM
Macro to go to next blank cell in column =?Utf-8?B?UkpC?= Microsoft Excel Misc 3 28th Feb 2007 04:51 PM


Features
 

Advertising
 

Newsgroups
 


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