Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Applying a change based on a CheckBox

Currently I use the following code to populate a cell on my worksheet from a
TextBox on a DialogBox:

Private Sub CommandButton1_Click()

Dim rng
Set rng = Cells(ActiveCell.Row, 1)
rng(1, 1).Value = TextBox3.Text

End Sub

Also on that DialogBox is a CheckBox. What I would like to have happen is,
if the CheckBox is selected (checked) then an X would be placed in cell 3 of
the current row "rng(1, 3)".



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Applying a change based on a CheckBox

Patrick,

Before the End Sub line:

If Checkbox1.Value = True then rng(1,3).value = "X"

Henry


"Patrick Simonds" wrote in message
...
Currently I use the following code to populate a cell on my worksheet from
a TextBox on a DialogBox:

Private Sub CommandButton1_Click()

Dim rng
Set rng = Cells(ActiveCell.Row, 1)
rng(1, 1).Value = TextBox3.Text

End Sub

Also on that DialogBox is a CheckBox. What I would like to have happen is,
if the CheckBox is selected (checked) then an X would be placed in cell 3
of the current row "rng(1, 3)".





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
Applying change to selected cells Colin Hayes Excel Worksheet Functions 4 February 13th 09 09:11 PM
When applying a theme to an Excel workbook and it will not change wilcott1 Excel Worksheet Functions 0 June 15th 08 03:21 PM
Conditional Formatting - Applying Format Based Custom Functions FARAZ QURESHI Excel Discussion (Misc queries) 2 May 8th 08 05:03 AM
Applying conditional formatting to cell based on another cell's in kdesemple Excel Discussion (Misc queries) 1 March 22nd 06 06:37 PM
Applying a currency rate that doesn't change when source updated Redsmartie Excel Worksheet Functions 3 April 1st 05 06:54 PM


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