Is there a function that would allow me to get the value of the active cell?
like it is done in VBA: Activecell.value
thanks
--
caroline
Is there a function that would allow me to get the value of the active cell?
like it is done in VBA: Activecell.value
thanks
--
caroline
Not a function, worksheet functions do not know what the active cell is, you
need event code for this
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Me.Range("H10").Value = ActiveCell.Value
End Sub
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"caroline" <caroline@discussions.microsoft.com> wrote in message
news:3635CF5C-389F-4DFE-87F8-99D2E249A46A@microsoft.com...
> Is there a function that would allow me to get the value of the active
cell?
> like it is done in VBA: Activecell.value
> thanks
> --
> caroline
Thanks That is what I thought.
--
caroline
"Bob Phillips" wrote:
> Not a function, worksheet functions do not know what the active cell is, you
> need event code for this
>
> 'This is worksheet event code, which means that it needs to be
> 'placed in the appropriate worksheet code module, not a standard
> 'code module. To do this, right-click on the sheet tab, select
> 'the View Code option from the menu, and paste the code in.
>
>
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
> Me.Range("H10").Value = ActiveCell.Value
> End Sub
>
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "caroline" <caroline@discussions.microsoft.com> wrote in message
> news:3635CF5C-389F-4DFE-87F8-99D2E249A46A@microsoft.com...
> > Is there a function that would allow me to get the value of the active
> cell?
> > like it is done in VBA: Activecell.value
> > thanks
> > --
> > caroline
>
>
>
Thanks That is what I thought.
--
caroline
"Bob Phillips" wrote:
> Not a function, worksheet functions do not know what the active cell is, you
> need event code for this
>
> 'This is worksheet event code, which means that it needs to be
> 'placed in the appropriate worksheet code module, not a standard
> 'code module. To do this, right-click on the sheet tab, select
> 'the View Code option from the menu, and paste the code in.
>
>
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
> Me.Range("H10").Value = ActiveCell.Value
> End Sub
>
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "caroline" <caroline@discussions.microsoft.com> wrote in message
> news:3635CF5C-389F-4DFE-87F8-99D2E249A46A@microsoft.com...
> > Is there a function that would allow me to get the value of the active
> cell?
> > like it is done in VBA: Activecell.value
> > thanks
> > --
> > caroline
>
>
>
Thanks That is what I thought.
--
caroline
"Bob Phillips" wrote:
> Not a function, worksheet functions do not know what the active cell is, you
> need event code for this
>
> 'This is worksheet event code, which means that it needs to be
> 'placed in the appropriate worksheet code module, not a standard
> 'code module. To do this, right-click on the sheet tab, select
> 'the View Code option from the menu, and paste the code in.
>
>
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
> Me.Range("H10").Value = ActiveCell.Value
> End Sub
>
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "caroline" <caroline@discussions.microsoft.com> wrote in message
> news:3635CF5C-389F-4DFE-87F8-99D2E249A46A@microsoft.com...
> > Is there a function that would allow me to get the value of the active
> cell?
> > like it is done in VBA: Activecell.value
> > thanks
> > --
> > caroline
>
>
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks