Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Product calculation macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeD1224 - 15 Jun 2007 21:36 GMT
I need my macro to do a calculation in cell h3.  The calculation logic should
be:

Multiply value in cell G3 by value in cell H1.  This value should then show
up in cell H3.  Then I need it to do the same thing for the next row
(multiply value in cell G4 by value in cell H1 and place answer in cell H4.  
I need to this to fill down for all used rows.

Thanks in advance.

Mike
Bob Phillips - 15 Jun 2007 22:36 GMT
iLastRow = Cells(Rows.Count, "G").End(xlUp).Row
   For i = 3 To iLatRow
       Cells(i,"H).Value = Cells(i,"G").Value * Range("H1").Value
   Next i

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I need my macro to do a calculation in cell h3.  The calculation logic
>should
[quoted text clipped - 10 lines]
>
> Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.