Return to VBA Code Examples

VBA MacID Function

MacID Description

Converts a four character constant to a value that can be used by Dir, Kill, Shell and AppActivate.

MacID Syntax

In the VBA Editor, you can type  “MacID(” to see the syntax for the MacID Function:

The MacID function contains an argument:

Constant: 4 characters used to specify a resource type, file type, application signature, or Apple Event (ex. “XLS5” for Excel files)

 

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro - A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users! vba save as


Learn More!