Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelMacroProject

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

A VBA project attached to an Excel workbook. Reading it never executes macro code.

Inheritance

  • object
  • ExcelMacroProject

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public void Remove() #

Removes this project from its workbook.

public void Save(string path, long maximumBytes = 67108864) #

Saves the attached project bytes to a file.

Parameters

path string required
maximumBytes long = 67108864 optional
public byte[] ToBytes(long maximumBytes = 67108864) #

Reads the attached project's bytes subject to the specified maximum size.

Parameters

maximumBytes long = 67108864 optional

Returns

byte[]

Properties

public ExcelDocument Document { get; } #

Gets the owning workbook.

public string PartUri { get; } #

Gets the attached project's package URI.