Link to home
Start Free TrialLog in
Avatar of BobRosas
BobRosas

asked on

FileCopy with asterisk

In VBA I get "Bad file name or number." when I use
FileCopy OldName, NewName
where
OldName = C:\Store\*.txt
and
NewName = E:\Store\
Is * not allowed?
How would I copy just the .txt files from one location to another.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BobRosas
BobRosas

ASKER

Worked Great!
Thanks
BobRosas,

You're welcome !

Regards,

Patrick