Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default rng.Offset(-1, 6).value to work with CheckBox value

Code line:
If rng.Offset(-1, 6).Value = Sheets("Inspections").Range("T13").Value Then
Range("S13").Value = "TRUE" Else Range("S13").Value = "FALSE"

The offset is correct.(-1,6)

I have in Sheets("Inspections").Range("T13") a text value of "AAA"
and in
Sheets("Inspections").Range("S13") a text value of "FALSE" . This value is
the linked cell for the Checkbox.

I have a total of 4 checkboxes. Linked cells are "S13:S16", and i have 4
text values in the range of "T13:T16" that co-incide wit the linked cells to
give a texct value other than a TRUE or FALSE value.

In the baove code i get a Ticke box when the text value in T13 = "AAA",
which is CORRECT, the Tick is placed in the checkbox because of the
range("S13").value = TRUE.

BUT,

If i change the text value in "T13" to something else, say "ZZZ", i STILL
get a checkBox with a Tick.


How can i rectify this so i can input values and change the check/uncheck
values of the checkboxes ?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default rng.Offset(-1, 6).value to work with CheckBox value

It worked for me using both types of checkboxes, Forms and Control.

Mike F
"Corey" wrote in message
...
Code line:
If rng.Offset(-1, 6).Value = Sheets("Inspections").Range("T13").Value Then
Range("S13").Value = "TRUE" Else Range("S13").Value = "FALSE"

The offset is correct.(-1,6)

I have in Sheets("Inspections").Range("T13") a text value of "AAA"
and in
Sheets("Inspections").Range("S13") a text value of "FALSE" . This value
is the linked cell for the Checkbox.

I have a total of 4 checkboxes. Linked cells are "S13:S16", and i have 4
text values in the range of "T13:T16" that co-incide wit the linked cells
to give a texct value other than a TRUE or FALSE value.

In the baove code i get a Ticke box when the text value in T13 = "AAA",
which is CORRECT, the Tick is placed in the checkbox because of the
range("S13").value = TRUE.

BUT,

If i change the text value in "T13" to something else, say "ZZZ", i STILL
get a checkBox with a Tick.


How can i rectify this so i can input values and change the check/uncheck
values of the checkboxes ?

Corey....



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
checkbox to work when emailed Steved Excel Worksheet Functions 0 September 15th 08 02:25 AM
Checkbox Offset Herd Excel Programming 2 February 17th 06 01:45 AM
How does .offset(i, counter) work? Mike Excel Programming 4 January 30th 06 05:30 PM
Trouble getting the OFFSET fo work JimP Excel Programming 7 July 29th 04 01:49 PM
Simple hiding columns with vba does not work with a checkbox Brian Excel Programming 3 January 9th 04 10:39 PM


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