LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Fill down formula if other column contains data

On 5 Mar, 11:31, Joel wrote:
Sub fill_formula_until_end()

'find last row in column B
LastRow = Range("B" & rows.Count).end(xlup).Row
for Rowcount = 9 to LastRow
* *if Range("B" & RowCount) < "" then
* * * * *Range("W" & RowCount) = Range("W8")
* * * * *Range("X" & RowCount) = Range("X8")
* *end if
next RowCount



Joel

This leaves the formulas in cells W8 and X8 but the cells below are
hardcoded with whatever value was in W8 and X8, rather than entering
the formula

Any idea what change I need to make to your code?
Thanks


 
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
Auto Fill formula from a column to row Margy Excel Discussion (Misc queries) 1 October 20th 08 05:15 PM
fill column with formula Margo Excel Worksheet Functions 3 October 31st 07 03:28 PM
Fill Formula Not Adjusting Down the Column lost in excel Excel Discussion (Misc queries) 2 July 5th 07 08:05 PM
Automatically fill in third column depending on data in second column J.J. Excel Programming 2 May 11th 07 07:34 PM
Fill a column with a formula kevcar40 Excel Discussion (Misc queries) 1 March 14th 07 12:55 PM


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