I need to avaoid an Excel prompt.
Hello,
I have the following code in a macro to setup a series of formulas in a
sheet. Trouble is, when run, Excel prompts for me to select the file from a
list. I don't think I should need to select it as I am being specific about
the path and filename in the code.
ActiveCell.Offset(0, 0).Formula = pathname &
Worksheets("variance").Range("I1").Value & ".xls'!" & ActiveCell.Offset(0,
12).Value
(ActiveCell.Offset(0, 12).Value adds a range name to the formula)
Any ideas anyone?
Thanks
Richard
|