Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default A problem in VB

im just wondering if anyone can figure out the code to
the following problem ( this is driving me spare): im
using office xp, i want a check box that when checked
will allow you to click a seperate button and it will
then speak the text content of a cell, but when unchecked
if you click the button it wont speak the text.

i know it soundsw long and complex but any help will be
apriciated, thanks.

JF
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default A problem in VB

In the Check Box:

Private Sub CheckBox1_Change()
If CheckBox1.Value = True Then
CommandButton1.Enabled = True
Else
CommandButton1.Enabled = False
End If
End Sub

In the Button:

Private Sub CommandButton1_Click()
MsgBox Cells(1, 1).Value
End Sub

Cells(1, 1).Value points to cell "A1".
(2, 1) would point to "A2".
(1, 2) would point to "B1" and so forth...

Be sure to have the button saved witht the "Enabled"
property set to "False".

- Pikus
-----Original Message-----
im just wondering if anyone can figure out the code to
the following problem ( this is driving me spare): im
using office xp, i want a check box that when checked
will allow you to click a seperate button and it will
then speak the text content of a cell, but when unchecked
if you click the button it wont speak the text.

i know it soundsw long and complex but any help will be
apriciated, thanks.

JF
.

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
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


All times are GMT +1. The time now is 04:18 AM.

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

About Us

"It's about Microsoft Excel"