ToriHabitatForHumanity
New Member
- Joined
- Oct 15, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
I wrote several modules in a workbook called Book1.xlsm. They worked perfectly. I saved the file as an addin. In excel I place a check by this file in excel add-ins. I open a new file and run a module. I get no results, and sometimes an error message. What am I doing wrong? Thanks for any assistance. Here is a simple module for example:
VBA Code:
Sub Fractionate()
''sets column format to fractional
'
Set ws = ThisWorkbook.Sheets("Sheet1")
'
ws.Columns("A:b").NumberFormat = "# ?/?"
End Sub