PC Review


Reply
Thread Tools Rate Thread

Activesheet question

 
 
kirkm
Guest
Posts: n/a
 
      7th May 2009
Hi

How do you see what options follow ActiveSheet. ?

The only one I can find Help on is Name.

I'm hoping there might be for for the current row.
(and if there's no current row that can detected).

Thanks - Kirk
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      7th May 2009
Hi,

Open VB editor using ALT+F11 and then

View|Object browser
In the 'Classes' window scroll down to and double click 'Worksheet' to get
the members.

Mike

"kirkm" wrote:

> Hi
>
> How do you see what options follow ActiveSheet. ?
>
> The only one I can find Help on is Name.
>
> I'm hoping there might be for for the current row.
> (and if there's no current row that can detected).
>
> Thanks - Kirk
>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      7th May 2009
Alt+F11 from worksheet to launch VBE.
F2 to launch Object Browser
--
If this post helps click Yes
---------------
Jacob Skaria


"kirkm" wrote:

> Hi
>
> How do you see what options follow ActiveSheet. ?
>
> The only one I can find Help on is Name.
>
> I'm hoping there might be for for the current row.
> (and if there's no current row that can detected).
>
> Thanks - Kirk
>

 
Reply With Quote
 
kirkm
Guest
Posts: n/a
 
      7th May 2009
Thanks Guys,

I got into there OK but can't see anything
for detecting the active row, does it exist in that enviroment, or is
it detected some other way?

Thanks - Kirk
 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      7th May 2009
MsgBox ActiveCell.Row

Regards,
Peter T

<kirkm> wrote in message news:(E-Mail Removed)...
> Thanks Guys,
>
> I got into there OK but can't see anything
> for detecting the active row, does it exist in that enviroment, or is
> it detected some other way?
>
> Thanks - Kirk



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      7th May 2009
Hi

MyRow = ActiveCell.Row

Mike

"kirkm" wrote:

> Thanks Guys,
>
> I got into there OK but can't see anything
> for detecting the active row, does it exist in that enviroment, or is
> it detected some other way?
>
> Thanks - Kirk
>

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      7th May 2009
Just like the ActiveSheet is an object containing all the properties of the
currently active sheet, there is an ActiveCell object that contains all the
properties of the currently selected cell. Note I said cell... there is also
a Selection object that contains all of the properties of the current
selection, whether that be a single cell or a group of cells (in a selection
of multiple cells, there is still a single active cell... the ActiveCell
object references it). So, to get the row that the active cell is on, just
ask the ActiveCell object for it...

MsgBox ActiveCell.Row

--
Rick (MVP - Excel)


"kirkm" wrote in message news:(E-Mail Removed)...
> Thanks Guys,
>
> I got into there OK but can't see anything
> for detecting the active row, does it exist in that enviroment, or is
> it detected some other way?
>
> Thanks - Kirk


 
Reply With Quote
 
kirkm
Guest
Posts: n/a
 
      8th May 2009
On Thu, 7 May 2009 11:33:42 -0400, "Rick Rothstein"
<(E-Mail Removed)> wrote:

>Just like the ActiveSheet is an object containing all the properties of the
>currently active sheet, there is an ActiveCell object that contains all the
>properties of the currently selected cell. Note I said cell... there is also
>a Selection object that contains all of the properties of the current
>selection, whether that be a single cell or a group of cells (in a selection
>of multiple cells, there is still a single active cell... the ActiveCell
>object references it). So, to get the row that the active cell is on, just
>ask the ActiveCell object for it...
>
>MsgBox ActiveCell.Row


Many thanks Rick (and others). The help is much appreciated
and my project is coming together nicely.

Cheers - Kirk
 
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
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? Jim K. Microsoft Excel Programming 2 2nd Jun 2008 08:09 PM
Copying new activesheet after other activesheet is hidden? Simon Lloyd Microsoft Excel Programming 1 20th Jun 2006 10:02 AM
WorkSheet / ActiveSheet Question Brian Microsoft Excel Worksheet Functions 1 25th Aug 2004 08:51 PM
WorkSheet / ActiveSheet Question Brian Microsoft Excel Programming 0 25th Aug 2004 04:27 PM
Very simple ActiveSheet.name question =?Utf-8?B?TWFyY290dGUgQQ==?= Microsoft Excel Programming 2 27th May 2004 12:36 AM


Features
 

Advertising
 

Newsgroups
 


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