Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default using checkbox to calculate another cell

I have the following code in a macro for a checkbox and it gives a error of
object required any suggestions?


Private Sub CheckBox19_Click()
If CheckBox19.Value = True Then
Range("I24").Select
ActiveCell.FormulaR1C1 = "=0.07*R[-1]C"
Else: Range("I24").Select
Selection.Value = 0
End If
End Sub
--
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default using checkbox to calculate another cell

Assue you use control Check box with cell link of "J7", try

Sub CheckBox19_Click()


If Range("j7").Value = True Then
Range("I24").Select
ActiveCell.FormulaR1C1 = "=0.07*R[-1]C"
Else
Range("I24").Select
Selection.Value = 0
End If
End Sub

George

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default using checkbox to calculate another cell

I can try but what is j7 I had tried the control box
--
John


"George" wrote:

Assue you use control Check box with cell link of "J7", try

Sub CheckBox19_Click()


If Range("j7").Value = True Then
Range("I24").Select
ActiveCell.FormulaR1C1 = "=0.07*R[-1]C"
Else
Range("I24").Select
Selection.Value = 0
End If
End Sub

George


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
ASSIGN VALUE TO CHECKBOX AND CALCULATE AVERAGE? nickee New Users to Excel 2 January 10th 09 09:44 PM
I want to place a checkbox in the middle of a cell, yet I want thecheckboxArea take up the entire cell. Leonid L Excel Discussion (Misc queries) 2 July 30th 08 04:25 PM
link a checkbox in a sheet to a checkbox on a userform? Arjan Excel Programming 0 November 10th 06 01:37 PM
can I use checkbox thus I could calculate the value in a sheet calculate checkBox value in a sheet Excel Programming 1 June 19th 06 05:29 PM
checkbox on form reset from checkbox on sheet raw[_12_] Excel Programming 1 December 3rd 05 05:08 AM


All times are GMT +1. The time now is 11:45 PM.

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

About Us

"It's about Microsoft Excel"