Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default button to update cell

I am trying to assign an option button to perform a calculation on the contents of a cell say C12. Then replace the contents of the Cell with the product of the equation. It seems like it should be as easy as assigning a variable1 to = C12, perform calculation on variable ((variable1*D12)+E12), populate C12 with variable2. But, I cant seem to get the code right
Any Help would be appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default button to update cell

Jerrett,

Is it not as simple as?

Range("C12").Value = (Range("C12").Value * _
Range("D12").Value ) + _
Range("E12").Value

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jerett" wrote in message
...
I am trying to assign an option button to perform a calculation on the

contents of a cell say C12. Then replace the contents of the Cell with the
product of the equation. It seems like it should be as easy as assigning a
variable1 to = C12, perform calculation on variable ((variable1*D12)+E12),
populate C12 with variable2. But, I can't seem to get the code right.
Any Help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default button to update cell

you are right. I was trying to make it much more
complicated than it is. Thank you.
-----Original Message-----
Jerrett,

Is it not as simple as?

Range("C12").Value = (Range("C12").Value * _
Range

("D12").Value ) + _
Range

("E12").Value

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jerett" wrote in

message
news:F6CF7200-EEBB-4B2D-A920-

...
I am trying to assign an option button to perform a

calculation on the
contents of a cell say C12. Then replace the contents

of the Cell with the
product of the equation. It seems like it should be as

easy as assigning a
variable1 to = C12, perform calculation on variable

((variable1*D12)+E12),
populate C12 with variable2. But, I can't seem to get

the code right.
Any Help would be appreciated.



.

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
Data Validation lists update orginal cell with list update [email protected] Excel Worksheet Functions 3 July 11th 08 07:56 AM
How do I update a formula automatically without hitting button F9 Duma New Users to Excel 1 March 27th 08 03:15 PM
Real-time update of chart using a Spin Button BinaryD Charts and Charting in Excel 4 November 7th 07 03:24 PM
Chart update using button Jay Excel Discussion (Misc queries) 0 September 27th 06 11:01 PM
Allow custom update button to work while sheet is protected mhng Excel Discussion (Misc queries) 0 July 14th 06 12:39 AM


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