Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
brg brg is offline
external usenet poster
 
Posts: 15
Default Display of control check boxes and option buttons

I am having a problem with the display of control check boxes and option
buttons reflecting the value of their linked cells.

I have a VB macro that goes in and changes the value of the cells that
controls are linked to. When the value has been changed, some controls
(usually the ones in the first couple of rows on the sheet) will update their
display to reflect the (new) value of their linked cell, while the rest
retain the display they had before the change.

Any ideas on what could cause this? Do I need (or is it possible) to tell
the control objects to update their displays to reflect the value of their
cells?

In case this has some bearing, I turn ScreenUpdating off before the
copy/paste and back on again afterwards, and I use
Worksheets().Range().FormulaR1C1 = Worksheets().Range().FormulaR1C1 for the
copy/paste.

--
BRG
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Display of control check boxes and option buttons

I have seen this problem but so long ago I'm not sure what the solution was.
I'd guess it's to set the value of the control directly:

Sheet1.CheckBoxes("Check box 1").Value = True

This is for a Forms toolbar check box. You didn't mention which kind you're
using.

--
Jim
"BRG" wrote in message
...
I am having a problem with the display of control check boxes and option
buttons reflecting the value of their linked cells.

I have a VB macro that goes in and changes the value of the cells that
controls are linked to. When the value has been changed, some controls
(usually the ones in the first couple of rows on the sheet) will update
their
display to reflect the (new) value of their linked cell, while the rest
retain the display they had before the change.

Any ideas on what could cause this? Do I need (or is it possible) to tell
the control objects to update their displays to reflect the value of their
cells?

In case this has some bearing, I turn ScreenUpdating off before the
copy/paste and back on again afterwards, and I use
Worksheets().Range().FormulaR1C1 = Worksheets().Range().FormulaR1C1 for
the
copy/paste.

--
BRG



  #3   Report Post  
Posted to microsoft.public.excel.programming
brg brg is offline
external usenet poster
 
Posts: 15
Default Display of control check boxes and option buttons

Hey Jim, thanks for the response.

I'm using checkboxes and option buttons from the control toolbar. The
buttons (and their linked cells) already have the values I want them to keep.
The problem is that with the cells locked, when you try to select say an
option button, an error pops up, the display of the button goes from
'selected' to 'not selected' or visa versa (which I don't want), but the
value of the linked cell doesn't change(which I want).

I want to either prevent the display of the button from changing, or find
some way to instruct all buttons and boxes to reflect the value that's in
their linked cells.

Thanks
--
BRG


"Jim Rech" wrote:

I have seen this problem but so long ago I'm not sure what the solution was.
I'd guess it's to set the value of the control directly:

Sheet1.CheckBoxes("Check box 1").Value = True

This is for a Forms toolbar check box. You didn't mention which kind you're
using.

--
Jim
"BRG" wrote in message
...
I am having a problem with the display of control check boxes and option
buttons reflecting the value of their linked cells.

I have a VB macro that goes in and changes the value of the cells that
controls are linked to. When the value has been changed, some controls
(usually the ones in the first couple of rows on the sheet) will update
their
display to reflect the (new) value of their linked cell, while the rest
retain the display they had before the change.

Any ideas on what could cause this? Do I need (or is it possible) to tell
the control objects to update their displays to reflect the value of their
cells?

In case this has some bearing, I turn ScreenUpdating off before the
copy/paste and back on again afterwards, and I use
Worksheets().Range().FormulaR1C1 = Worksheets().Range().FormulaR1C1 for
the
copy/paste.

--
BRG




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
Check Boxes or Option Buttons Lynda Excel Discussion (Misc queries) 3 April 4th 08 02:15 PM
option buttons or check boxes meandmyindigo via OfficeKB.com New Users to Excel 2 August 7th 06 12:55 PM
How do i create a value for check boxes or option boxes Tim wr Excel Discussion (Misc queries) 1 February 9th 06 10:29 PM
Check Boxes / Option Buttons.... Darin Kramer Excel Programming 2 December 16th 04 01:01 PM
Check Boxes and Option Buttons newboy18 Excel Programming 18 June 27th 04 07:00 PM


All times are GMT +1. The time now is 09:12 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"