Article ID: 138822
Article Last Modified on 8/19/2003
82980 Excel: Unexpected Quit Under Macintosh System 7.0.x
Macintosh Kill MacID("TEXT")
Windows Kill "*.txt"
This will delete all text files in the current directory.
Macintosh myfile = Dir("HD:MyFolder:", MacID("XLS5"))
Windows myfile = Dir("c:\mydir\*.xls")
This will return the name of the first Microsoft Excel file in the
specified folder to the variable "myfile." Note that in the Macintosh
example, you need to follow the specified folder with a colon.
Macintosh myprog = Shell(MacID("MSWD"))
Windows myprog = Shell("C:\Msoffice\Winword\Winword.exe")
This will start Microsoft Word from within your Microsoft Excel macro, and
in the Windows example, assumes that Microsoft Word is in the
C:\Msoffice\Winword folder. If the Shell function successfully runs the
named file, it returns the task identification (ID) of the started program
to the variable "myprog". The task ID is a unique number that identifies
the running program.
Macintosh AppActivate MacID("MSWD")
Windows AppActivate "Microsoft Word"
This will activate Microsoft Word from within you Microsoft Excel macro.
NOTE: In order for the AppActivate Statement to work, you must first have
the application started.
macidand then double-click the selected text.
Additional query words: 5.00a 98 XL98 XL5 Mac ID MXL
Keywords: kbhowto kbinfo KB138822