PC Review


Reply
Thread Tools Rate Thread

Determining Range of selected cell

 
 
mark.diffley@gmail.com
Guest
Posts: n/a
 
      5th Dec 2006
How do I determine which cell is currently highlighted? I'm trying to
create a macro that will resort some data based on one columns value. I
have that part working, but after it's sorted i want to select the cell
that was originally selected before the macro ran. I tried searching
but couldn't figure out the proper search to use (i.e. the right
keywords to get what i want).

Any help?

 
Reply With Quote
 
 
 
 
macropod
Guest
Posts: n/a
 
      5th Dec 2006
Hi Mark,

Just to get you started:
Sub GetAddress()
MsgBox ActiveCell.Address
End Sub

--
macropod
[MVP - Microsoft Word]


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How do I determine which cell is currently highlighted? I'm trying to
> create a macro that will resort some data based on one columns value. I
> have that part working, but after it's sorted i want to select the cell
> that was originally selected before the macro ran. I tried searching
> but couldn't figure out the proper search to use (i.e. the right
> keywords to get what i want).
>
> Any help?
>



 
Reply With Quote
 
mark.diffley@gmail.com
Guest
Posts: n/a
 
      5th Dec 2006
Figured it out with that... Thanks!

 
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
Determining Cell within Range Pablo Microsoft Excel Programming 1 27th Feb 2008 02:33 AM
Determining row # of selected cell =?Utf-8?B?Qm9i?= Microsoft Excel Programming 2 25th Sep 2007 12:28 PM
Problem determining whether a cell is within a Range =?Utf-8?B?U2FlT25nSmVlTWE=?= Microsoft Excel Programming 2 18th Nov 2006 12:45 AM
Determining end of user-selected range Syed Faisal Microsoft Excel Programming 2 23rd Oct 2003 05:22 PM
Determining whether selected cell has value or formula? John Wirt Microsoft Excel Programming 3 31st Jul 2003 04:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:57 AM.