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!

VBA Code Examples Add-in

Easily access all of the code examples found on our site.

Simply navigate to the menu, click, and the code will be inserted directly into your module. .xlam add-in.

(No installation required!)

Free Download

Return to VBA Code Examples