Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom
You helped me a great deal last time with a code to change the text in "Format Button". Below I have tried to modify that code to work in my application, but as you can see, I'm not so succesfull. Private Sub Worksheet_Change(ByVal Target As Range) Dim btn As Button If Target.Count 1 Then Exit Sub If Not Intersect(Target, Range("B9:B18")) Is Nothing _ And Target.Value < "" Then For Each btn In Me.Buttons If Not Intersect(btn.TopLeftCell.Offset(0, 0), Target) Is Nothing Then btn.Caption = Target If Not Intersect(Target, Range("c9:c18")) Is Nothing _ And Target.Value < "" Then If Not Intersect(btn.TopLeftCell.Offset(0, 0), Target) Is Nothing Then btn.Caption = Target Exit For End If Next End If End Sub This is what I want to do: In a separate sheet I set the values in cells E9:E109. Then return that value to a cell in the same sheet as I have the buttons. I have 100 buttons in 10x10 area (cell B9:K18 gets the value from E9:E109)The value should return under the button and then be displayed in the button. Maybe it's possible to return the value directly from the other sheet and cells E9:E109. Hope you can help me with this one //Thomas |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Thank You Tom Ogilvy | Excel Worksheet Functions | |||
Tom Ogilvy | Excel Programming | |||
tom ogilvy? somebody? | Excel Programming | |||
Thank u Tom Ogilvy | Excel Programming | |||
Tom Ogilvy | Excel Programming |