'Addin button in module with same name: "The macro may not be available in this workbook"
I have made a custom addin with buttons. I made a simple one for "Center Across".
I created the Addin using OfficeRibbonXEditor-NET5-Binaries and the module is called CenterAcross.
I get
"The macro may not be available in this workbook"
Sub CenterAcross(control As IRibbonControl)
With Selection
.HorizontalAlignment = xlCenterAcrossSelection
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
