Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Turn formula into vba

I have a formula that i need to turn into vba
=C41*E41/360

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Turn formula into vba

try

Range("A1").formula = "=C41*E41/360"

--


Gary


"jln via OfficeKB.com" <u25956@uwe wrote in message news:68fc0f41da24d@uwe...
I have a formula that i need to turn into vba
=C41*E41/360

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Turn formula into vba


jln via OfficeKB.com wrote:
I have a formula that i need to turn into vba
=C41*E41/360

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1


Assume the range you want the formula in is A41

Range("A41")="=(C41*E41)/360)"

Rgds
Raymond

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Turn formula into vba

If you are looking to just have the result of the formula in the cell
then...

Sub SortSheet()
Dim MyAnswer As String
MyAnswer = (Range("C41").Value * Range("E41").Value) / 360
Range("F41").Value = MyAnswer 'or whatever cell you'd like
'your answer in.

End Sub


jln via OfficeKB.com wrote:
I have a formula that i need to turn into vba
=C41*E41/360

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1


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
How do you turn off the formula bar? wilder5 New Users to Excel 2 December 15th 09 12:15 AM
Want formula to turn to value by itself DougL Excel Discussion (Misc queries) 2 February 8th 08 01:09 PM
Turn Off Formula ? WhiteHawk New Users to Excel 5 May 4th 05 11:41 PM
How to turn a string into a formula? rocky Excel Programming 1 October 31st 04 12:12 AM
Turn OFF Formula Bar??? Michael Vaughan Excel Programming 1 September 3rd 04 05:43 PM


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