PC Review


Reply
Thread Tools Rate Thread

To change command button caption

 
 
CAPTGNVR
Guest
Posts: n/a
 
      7th Oct 2008
Dear All
I am in sheet2.
I click a custom tool bar item, then it has to goto sheet1 and change
command button in sheet1 by name 'alfa" caption from "go to ballast" to "go
to cargo" .

Have been getting error when using activesheet.shapes.("alfa").caption= "go
to cargo"

Pls suggest right code n thnks

brgds/captgnvr
 
Reply With Quote
 
 
 
 
CAPTGNVR
Guest
Posts: n/a
 
      7th Oct 2008
Sorry- figured it out and the below code works.
ActiveSheet.OLEObjects("alfa").Object _
..Caption = "GO TO CARGO"

can consider this thread closed.

"CAPTGNVR" wrote:

> Dear All
> I am in sheet2.
> I click a custom tool bar item, then it has to goto sheet1 and change
> command button in sheet1 by name 'alfa" caption from "go to ballast" to "go
> to cargo" .
>
> Have been getting error when using activesheet.shapes.("alfa").caption= "go
> to cargo"
>
> Pls suggest right code n thnks
>
> brgds/captgnvr

 
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
using vba to change command button caption =?Utf-8?B?UGF1bGFP?= Microsoft Excel Programming 2 5th Apr 2006 07:35 PM
How to programmatically change caption of macro custom button on Outlook command toolbar with VBA? rj Microsoft Outlook VBA Programming 2 29th Apr 2005 03:50 AM
Change Caption of Forms Command Button Microsoft Excel Programming 9 10th Dec 2004 07:59 AM
command button forcolor and caption change manchery Microsoft Access VBA Modules 1 14th Aug 2004 12:21 AM
Re: Command Button Caption Dave Peterson Microsoft Excel Misc 0 6th Aug 2004 08:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 PM.