Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? Cheers Andy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Andy wrote:
Hi All Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? Set rng = ActiveSheet.Buttons(Application.Caller).TopLeftCel l works for me. -- Dick Kusleika MVP - Excel Excel Blog - Daily Dose of Excel www.dicks-blog.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Andy,
Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? That assignment statement *is* for a button from the Forms tool bar. If you want to set the range from a Controls Toolbox button, try: '============== Private Sub CommandButton1_Click() Dim rng As Range Set rng = Range(Me.CommandButton1.TopLeftCell.Address) End Sub '<<============== --- Regards, Norman "Andy" wrote in message ... Hi All Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? Cheers Andy |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Norman and Dick, it's 4pm on Friday, thats my excuse. I meant it
the other way around, should have been is there an equivalent for controls toolbox button. Norman Jones wrote: Hi Andy, Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? That assignment statement *is* for a button from the Forms tool bar. If you want to set the range from a Controls Toolbox button, try: '============== Private Sub CommandButton1_Click() Dim rng As Range Set rng = Range(Me.CommandButton1.TopLeftCell.Address) End Sub '<<============== --- Regards, Norman "Andy" wrote in message ... Hi All Is there an equivalent of: Set rng = Range(ActiveSheet.Buttons(Application.Caller). _ TopLeftCell.Address) for buttons from forms toolbar? Cheers Andy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Option Buttons from the Forms Toolbar - Excel 2003 | Excel Worksheet Functions | |||
buttons on forms | Excel Programming | |||
Group buttons from the forms toolbar | Excel Discussion (Misc queries) | |||
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! | Excel Programming | |||
saving toolbar buttons on custom toolbar | Excel Programming |