CreateObject now not working
CreateObject now not working
PlanMaker Professional 2021 (rev S1014.0529) 64bit
Windows 10
The following worked fine until I stated using 2021.
Dim pm as Object
Set pm = CreateObject("PlanMaker.Application")
pm.Visible = True
It now fails on Set pm...
ActiveX component can't create object.
Can you advise please.
Windows 10
The following worked fine until I stated using 2021.
Dim pm as Object
Set pm = CreateObject("PlanMaker.Application")
pm.Visible = True
It now fails on Set pm...
ActiveX component can't create object.
Can you advise please.
Re: CreateObject now not working
Thanks for reporting this problem. I tried to run this code from BasicMaker and TextMaker and it worked well. Please share a screenshot of the error you are getting in this code.
Re: CreateObject now not working
Thank you for your response and I attach the error picture.
I must emphasise that nothing has changed on my computer and I have not edited or changed the BasicMaker script, I simply installed the v2021 when I purchased it and ran my accounts as normal only to have it fail as described.
I must emphasise that nothing has changed on my computer and I have not edited or changed the BasicMaker script, I simply installed the v2021 when I purchased it and ran my accounts as normal only to have it fail as described.
Re: CreateObject now not working
Thanks for sharing the screenshot. I was unable to reproduce this problem but I have forwarded the details to our development team. Meanwhile, please share the script file which you are trying to run.
Re: CreateObject now not working
Thank you again.
I attach the program (in use since early 2019, but have for this copy had to alter text in "" only because this is my accounts.
I attach the program (in use since early 2019, but have for this copy had to alter text in "" only because this is my accounts.
- Attachments
-
- Update.bas
- (8.59 KiB) Downloaded 1239 times
-
- SoftMaker Team
- Posts: 3108
- Joined: Fri Nov 21, 2003 4:57 pm
- Location: Nürnberg, Germany
- Contact:
Re: CreateObject now not working
Does it work if you start PlanMaker manually beforehand?
Martin Kotulla
SoftMaker Software GmbH
SoftMaker Software GmbH
Re: CreateObject now not working
I always start Planmaker and load the spreadsheet and at some stage (dependent on what I enter) will run the script.
-
- SoftMaker Team
- Posts: 3108
- Joined: Fri Nov 21, 2003 4:57 pm
- Location: Nürnberg, Germany
- Contact:
Re: CreateObject now not working
1. Ensure that the file PlanMaker.tlb exists in Program Files\SoftMaker Office 2021.
2. Reinstall SoftMaker Office. Maybe something has messed up the registry settings.
2. Reinstall SoftMaker Office. Maybe something has messed up the registry settings.
Martin Kotulla
SoftMaker Software GmbH
SoftMaker Software GmbH
Re: CreateObject now not working
While I am doing that perhaps I should mention that I am running Office as a portable, produced in the proper way.
The original has been uninstalled.
I will of course re-install but the indication is that it would not therefore be a registry issue.
EDIT: The tlb file is present.
The original has been uninstalled.
I will of course re-install but the indication is that it would not therefore be a registry issue.
EDIT: The tlb file is present.
-
- SoftMaker Team
- Posts: 3108
- Joined: Fri Nov 21, 2003 4:57 pm
- Location: Nürnberg, Germany
- Contact:
Re: CreateObject now not working
Oh, that won't work. For OLE Automation to work, it needs to be properly installed in the Windows Registry. Portable apps don't do that.
Martin Kotulla
SoftMaker Software GmbH
SoftMaker Software GmbH
Re: CreateObject now not working
Ah! That would have been nice to know.
I will install and presume it will work and I will report back.
Sorry I did not think there was any difference.
I will install and presume it will work and I will report back.
Sorry I did not think there was any difference.
Re: CreateObject now not working
Thank you very much martin-k, all is now well.
What I find very odd is that with v2018 I used it as a portable in a folder on the computer with no problem.
Kind regards
What I find very odd is that with v2018 I used it as a portable in a folder on the computer with no problem.
Kind regards
-
- SoftMaker Team
- Posts: 3108
- Joined: Fri Nov 21, 2003 4:57 pm
- Location: Nürnberg, Germany
- Contact:
Re: CreateObject now not working
Most likely this was so because your regular install created the registry entries, and since portable PlanMaker was already running, BasicMaker switched to it instead of starting the regulary installed version.
Martin Kotulla
SoftMaker Software GmbH
SoftMaker Software GmbH