Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Using Active Cell Value in a Calculation

Hello,
I am trying to use the value in a cell in a calculation. But I want the
results of the calculation to stay in the cell.

Here is my formula: =ROUND(D1*ActiveCell.Value,2). The active cell contains
the value 0.1017.

Is there a way to use the value in a cell and replace it with the results of
a calculation?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Using Active Cell Value in a Calculation

This is crude but it works for me...

Sub cellcalc()
Dim deeone
deeone = Range("d1").Value

ActiveCell.Value = Round((deeone * ActiveCell.Value), 2)

End Sub


"tedd13" wrote:

Hello,
I am trying to use the value in a cell in a calculation. But I want the
results of the calculation to stay in the cell.

Here is my formula: =ROUND(D1*ActiveCell.Value,2). The active cell contains
the value 0.1017.

Is there a way to use the value in a cell and replace it with the results of
a calculation?

Thanks

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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
referring to formula in a non active cell from active cell nickname Excel Discussion (Misc queries) 1 June 21st 07 12:11 PM
Macro to paste in the active cell the contents of a cell from another file?? LarryB Excel Programming 3 June 12th 06 06:37 PM
I need to sort an active sheet using the col of the active cell HamFlyer Excel Programming 3 June 6th 06 07:25 PM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Excel Programming 3 January 23rd 06 09:57 PM


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

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"