#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default VBA

Hi,

Pls help me with the below VBA progamming.

Starting with cell E5, the formula I want to apply = C5*D5, and I need
this to repeat itself down each cell until the data in Col C is
blank/empty.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA


Hello missk,

*To find the last row in column "C":*
LastRow = ActiveSheet.Cells(Rows.Count, "C").End(xlUp).Row

*To fill the Range using the Formula in cell E5:*
ActiveSheet.Range("E5", "E" & LastRow).FillDown

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=500981

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default VBA

In E5 put, =IF(C5<"",C5*D5,"") and copy down.

"missk" wrote:

Hi,

Pls help me with the below VBA progamming.

Starting with cell E5, the formula I want to apply = C5*D5, and I need
this to repeat itself down each cell until the data in Col C is
blank/empty.


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



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