Hello
I have been using a simple VBA code to change Excel international options to what my application runs. Basically it sets DecimalSeparator = "." and ThousandsSeparator = ",".
I decided to move my VBA code to a DLL written in VB-6.
What I do is to connect to Excel with a reference library and later I write this in my class:
Implements AddInDesignerObjects.IDTExtensibility2
Private oXL As excel.Application
I try later in my function to change the Excel options with this code:
Set oXL = excel.Application
oXL.DecimalSeparator = "."
oXL.ThousandsSeparator = ","
However these options are changed outside my "current" Excel application. It will not work until next time I re-open Excel. This is not what I desire: I want to be able to change immediately Excel options.
How can I do this? Anybody has experience with this problem? I checked in the forum and using Google too, but could not find any solution.
I have been using a simple VBA code to change Excel international options to what my application runs. Basically it sets DecimalSeparator = "." and ThousandsSeparator = ",".
I decided to move my VBA code to a DLL written in VB-6.
What I do is to connect to Excel with a reference library and later I write this in my class:
Implements AddInDesignerObjects.IDTExtensibility2
Private oXL As excel.Application
I try later in my function to change the Excel options with this code:
Set oXL = excel.Application
oXL.DecimalSeparator = "."
oXL.ThousandsSeparator = ","
However these options are changed outside my "current" Excel application. It will not work until next time I re-open Excel. This is not what I desire: I want to be able to change immediately Excel options.
How can I do this? Anybody has experience with this problem? I checked in the forum and using Google too, but could not find any solution.