Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using FileCopy, I'd like to copy a file from a CD-Rom that is always in the
same folder to the hard drive. Sub TranferFiles() SourceFile = "E:\folder\MyFile.doc" DestinationFile = "C:\Temp\MyFile.doc" FileCopy SourceFile, DestinationFile End Sub One problem with this....The CD-Rom drive is not always E from one PC to the other. So how do I identify the CD-Rom drive so that my code looks like CD_Drive = ??????? SourceFile = CD_Drive + "\folder\MyFile.doc" Regards! Michel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Links to mapped drive change to refer to local hard drive | Links and Linking in Excel | |||
Obtain drive letter assignment of CD/DVD drive? | Excel Discussion (Misc queries) | |||
Can I save to hard drive AND my flash drive at the same time? | Excel Discussion (Misc queries) | |||
Pasting a range of information from a foler on F Drive to another folder on same drive | Excel Programming | |||
Find links with code; change from G drive to C drive | Excel Programming |