That seems to run for me. What is the problem you are having eg
unexpected results, error messages etc?
Regards
Rowan
shart wrote:
> Thank you for all the help so far. I have one more step and them I am
> finished.
>
> 1. I need to add a formula into a seporate XLS document based pretty
> much on the same set of rules in the first document.
>
> a. in cell D10 (and every line below)
> =IF(LEN([Export.xls]Global!B10)>0,Global!B10,"")
> However, I only want to add this to lines which already have data
> in Export.xls
>
>
> The snippet I am having problems with
>
> Code:
> --------------------
>
> Workbooks.Open Filename:= _
> "\\server\shukr amman\CCS\PriceApps\Motion.xls"
>
> Windows("Motion.xls").Activate
> With Sheets("UploadData")
>
> .Range("D10:D" & eRow).FormulaR1C1 = _
> "=IF(LEN([Export.xls]Global!RC[1])>0,[Export.xls]Global!RC[1],"""")"
>
> End With
>
> --------------------
>
Bookmarks