Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Need to place 3 formuals in VBA

Ok what i have is formuals that start in row 41 columns F,G,I and match the
length of data in column E.

=C41*E41/360 Goes in F

=F41*30 Goes in G

=G41+H41 Goes in I

SO im thinking that i need to have a count of row E then add the formuals
into the three columns. SO how do I do this?

--
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: 272
Default Need to place 3 formuals in VBA

Here's the basic concept using FormulaR1C1:

dim lRow as long
lRow = Range("E" & Rows.Count).End(xlUp).Row
Range("F41:F" & lRow).FormulaR1C1 = "=RC[-3]*RC[-1]/360"
Range("G41:G" & lRow).FormulaR1C1 = "=RC[-1]*30"
Range("I41:I" & lRow).FormulaR1C1 = "=RC[-2]+RC[-1]"

--
Charles Chickering

"A good example is twice the value of good advice."


"jln via OfficeKB.com" wrote:

Ok what i have is formuals that start in row 41 columns F,G,I and match the
length of data in column E.

=C41*E41/360 Goes in F

=F41*30 Goes in G

=G41+H41 Goes in I

SO im thinking that i need to have a count of row E then add the formuals
into the three columns. SO how do I do this?

--
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
excels formuals jvenditti Excel Discussion (Misc queries) 2 December 15th 09 07:04 AM
Formuals Gene McKinney YMCA international Excel Discussion (Misc queries) 2 April 30th 08 08:09 PM
New to Formuals Tanya Excel Worksheet Functions 2 May 12th 07 04:30 AM
ROUNDING AND 2 FORMUALS IN ONE CELL Joe Excel Worksheet Functions 0 November 29th 06 11:06 PM
IF, Then formuals Cheryle Excel Programming 1 July 1st 04 07:27 AM


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