Workbooks.Open "E:\Data\Excel\Two.xls"
"Two.xls" opens as expected.
but if I place the same line of code in a Function rather than a subroutine
"Two.xls" does not open!
Any ideas? All I'm trying to do is to extract some data from one sheet &
copy it to another.
--
Peter
To err is human but it takes a computer to really mess things up!
AHHHHHHHHHH
--
Peter
To err is human but it takes a computer to really mess things up!
"Peter" <gam...@SPAMblueyonder.co.uk> wrote in message
news:chy1e.14216$XH5....@fe1.news.blueyonder.co.uk...
A function used in a formula can return a value. It cannot make any changes
to the workbook.
Hope it helps.
Bye
Elef
"Peter" <gam...@SPAMblueyonder.co.uk> ha scritto nel messaggio
news:chy1e.14216$XH5....@fe1.news.blueyonder.co.uk...
Peter
"Elef" <m.p.b@*toglimi*rocketmail.com> wrote in message
news:E8E1e.23974$kC3....@tornado.fastwebnet.it...
"Peter" <gam...@SPAMblueyonder.co.uk> ha scritto nel messaggio
news:j7P1e.15203$XH5....@fe1.news.blueyonder.co.uk...