PC Review


Reply
Thread Tools Rate Thread

how do I tell a macro to move to the bottom of a collumn plus one

 
 
=?Utf-8?B?TWFjcm8tQ2hhbGxlbmdlZA==?=
Guest
Posts: n/a
 
      14th Apr 2007
Hello,

Im trying to write a simple macro that determines the bottom end of a
collumn of data, and then down drops down one more row to a blank space.
This would be useful for a situation when you want to tack on more info in a
collumn where you dont necessarily know where the previous list of data ends.

For example I know:

Selection.End(xlDown).Select

this will get me to the last item in a list of data, but not to the next
blank row

How do I tell it (in a macro) to skip down one more space?

Please email me at: (E-Mail Removed)

Thank you
Richard S

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      14th Apr 2007
you can try this, but selecting is not a good practice

Selection.End(xlDown).Offset(1).Select

--


Gary


"Macro-Challenged" <Macro-(E-Mail Removed)> wrote in message
news:14D45FF1-0C3F-4966-8F81-(E-Mail Removed)...
> Hello,
>
> Im trying to write a simple macro that determines the bottom end of a
> collumn of data, and then down drops down one more row to a blank space.
> This would be useful for a situation when you want to tack on more info in a
> collumn where you dont necessarily know where the previous list of data ends.
>
> For example I know:
>
> Selection.End(xlDown).Select
>
> this will get me to the last item in a list of data, but not to the next
> blank row
>
> How do I tell it (in a macro) to skip down one more space?
>
> Please email me at: (E-Mail Removed)
>
> Thank you
> Richard S
>



 
Reply With Quote
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      14th Apr 2007
Using Selection.End(xlDown).Select is fine as long as there is data in every
cell in the column. If you there is a chance for a blank or two in the
column the maybe this would be better to get you there:

ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select

Replace the 1 in Cells(Rows.Count, ?) with the column number or letter you
want to end up in. If you use the letter, be sure to enclose it in quote
marks.

"Macro-Challenged" wrote:

> Hello,
>
> Im trying to write a simple macro that determines the bottom end of a
> collumn of data, and then down drops down one more row to a blank space.
> This would be useful for a situation when you want to tack on more info in a
> collumn where you dont necessarily know where the previous list of data ends.
>
> For example I know:
>
> Selection.End(xlDown).Select
>
> this will get me to the last item in a list of data, but not to the next
> blank row
>
> How do I tell it (in a macro) to skip down one more space?
>
> Please email me at: (E-Mail Removed)
>
> Thank you
> Richard S
>

 
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
counting if data from one collumn is present in another collumn =?Utf-8?B?QW1lbGlh?= Microsoft Excel Worksheet Functions 1 8th Feb 2007 10:05 PM
Move to bottom of Column =?Utf-8?B?TmlnZWw=?= Microsoft Excel Programming 6 22nd Dec 2005 06:33 PM
Is there a way to move data from collumn to rows =?Utf-8?B?VGhvbSBDUk8=?= Microsoft Access External Data 2 8th Feb 2005 07:13 AM
How to move the x axis to the bottom Matt Microsoft Excel Charting 2 14th Sep 2004 06:35 PM
taskbar move from top to bottom scott Windows XP Basics 4 17th Jul 2004 09:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 PM.