VBA: Sample Code to Determine CD-ROM Drive Letter (180766)
The information in this article applies to:
- Microsoft Visual Basic for Applications 5.0
- Microsoft Office 97 for Windows
- Microsoft Access 97
- Microsoft Excel 97 for Windows
- Microsoft PowerPoint 97 for Windows
- Microsoft Word 97 for Windows
This article was previously published under Q180766 SUMMARY
This article contains sample Microsoft Visual Basic for Applications code
that determines the drive letter of the first CD-ROM drive and returns it
to a variable as a string. It is then output to a message box. This would
be useful for accessing files contained on a CD.
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto KB180766 |
---|
|