#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Hey! T. Valko

You can use a worksheet event under the worksheet that contains the cell.

Rightclick on the worksheet tab with the changing cell. Select view code.
Paste this into the newly opened code window:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myCell As Range
Set myCell = Me.Range("A1")

If Target.Cells.Count 1 Then
Exit Sub 'one cell at a time
End If

If Intersect(Target, myCell) Is Nothing Then
Exit Sub
End If

Worksheets("sheet1").CommandButton1.Caption _
= Format(myCell.Value, "mmmm dd, yyyy")

End Sub

You'll have to change the cell to look at (I used A1). As well as the other
worksheet's name, the commandbutton's name and use the caption you want.



aussiegirlone wrote:

JLatham
Can I ask you a question while youre here?
I have a command button that when clicked it goes to another sheet
And it works beautifully thanks to other members, I named this button
Sunday. now I wish this same buttons name to change automatically when I
change a date on a different worksheet. Is this possible?
Aussiegirlone

"JLatham" wrote:

someone misses you badly...
http://www.microsoft.com/office/comm...8-5971526f3f2d

Seems ausiegirlone needs to feel you near. :)


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivotting - T. Valko Bigfoot17 Excel Worksheet Functions 1 October 3rd 08 06:54 PM
MR T VALKO ..PLZ HELP pierre Excel Discussion (Misc queries) 1 June 4th 08 09:27 PM
TO mr t.valko... pierre Excel Discussion (Misc queries) 7 May 31st 08 07:30 PM
mr t.valko ..help pierre Excel Discussion (Misc queries) 8 May 28th 08 06:46 AM
Thanks Pete_UK & T. Valko... robzrob Excel Worksheet Functions 1 May 20th 08 10:24 PM


All times are GMT +1. The time now is 01:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"