Romano_odK
Active Member
- Joined
- Jun 4, 2020
- Messages
- 380
- Office Version
- 365
- Platform
- Windows
Good evening,
For conversion to XML I got a macro. I would like to put this macro in a Active X button, but it refuses to run. (it does run with a normal button) The first error I got is on the Public statement. Now this is a small part of the macro, but can this solved?
Thank you for your time and efforts.
ROmano
Public Itemcode As String
Public SalesPrice As String
Public CostPrice As String
Public SupplierMain As String
Public SupplierCode As String
Public SupplierPrice As String
Public Itemrow As Integer ' Counter for actual row
Public SaveDir As String ' Header Cell (2,2)
Public ItemCurrency As String ' Header Cell (4,2)
Public ItemResource As String ' Header Cell (6,2)
Public Action As Boolean ' Flag
For conversion to XML I got a macro. I would like to put this macro in a Active X button, but it refuses to run. (it does run with a normal button) The first error I got is on the Public statement. Now this is a small part of the macro, but can this solved?
Thank you for your time and efforts.
ROmano
Public Itemcode As String
Public SalesPrice As String
Public CostPrice As String
Public SupplierMain As String
Public SupplierCode As String
Public SupplierPrice As String
Public Itemrow As Integer ' Counter for actual row
Public SaveDir As String ' Header Cell (2,2)
Public ItemCurrency As String ' Header Cell (4,2)
Public ItemResource As String ' Header Cell (6,2)
Public Action As Boolean ' Flag