Thanks Nick,
The line
If workbooks.open(filename) is nothing then creatfile()
is what I needed.
It seems funny to be writing code in words that I understand (ie "if __
is nothing then"). Just a matter of knowing what words work and what
order to put them in.
Works well now.
Simon
--
simonhall
------------------------------------------------------------------------
simonhall's Profile:
http://www.excelforum.com/member.php...o&userid=30582
View this thread:
http://www.excelforum.com/showthread...hreadid=561328