VbaModuleCollection.Add

Add(Worksheet)

Adds module for a worksheet.

public int Add(Worksheet sheet)
ParameterTypeDescription
sheetWorksheetThe worksheet

See Also


Add(VbaModuleType, string)

Adds module.

public int Add(VbaModuleType type, string name)
ParameterTypeDescription
typeVbaModuleTypeThe type of module.
nameStringThe name of module.

See Also