HYPTUSS 11.71 ControlCommandButton1
-
- Lemon Slice
- Posts: 395
- Joined: November 9th, 2016, 6:14 pm
HYPTUSS 11.71 ControlCommandButton1
I just downloaded this version but when I try the command buttons, I get the message that the 'ControlCommandButton1' cannot be created. I am using Windows 7 and Active content is enabled.
john
john
-
- Lemon Quarter
- Posts: 4108
- Joined: November 4th, 2016, 9:42 pm
Re: HYPTUSS 11.71 ControlCommandButton1
What is perhaps more relevant than the version of Windows is what version of Office you are using. Also, is it any button, or particular button(s) on a particular sheet? It will help the developers if you can be more specific.johnstevens77 wrote:I just downloaded this version but when I try the command buttons, I get the message that the 'ControlCommandButton1' cannot be created. I am using Windows 7 and Active content is enabled.
-
- Lemon Quarter
- Posts: 3865
- Joined: November 4th, 2016, 9:24 am
Re: HYPTUSS 11.71 ControlCommandButton1
Have you made any changes to your downloaded version before you saw the error? If so, what happens if you download a fresh copy and try it without any changes?johnstevens77 wrote:I just downloaded this version but when I try the command buttons, I get the message that the 'ControlCommandButton1' cannot be created. I am using Windows 7 and Active content is enabled.
john
Which command button are you using?
What version of Excel (2003, 2010, 2016, etc)? Is it 32-bit or 64-bit (note: not your Windows 7. Even if Windows 7 is 64-bit, it is recommended to use 32-bit Excel)
--kiloran
-
- Lemon Half
- Posts: 8675
- Joined: November 4th, 2016, 1:16 pm
Re: HYPTUSS 11.71 ControlCommandButton1
I think the answers to these two key questions will be the most interesting for me too, so thanks kiloran.kiloran wrote:Have you made any changes to your downloaded version before you saw the error?johnstevens77 wrote:
I just downloaded this version but when I try the command buttons, I get the message that the 'ControlCommandButton1' cannot be created. I am using Windows 7 and Active content is enabled.
If so, what happens if you download a fresh copy and try it without any changes?
Cheers,
Itsallaguess
-
- Lemon Slice
- Posts: 395
- Joined: November 9th, 2016, 6:14 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Thanks for the replies. I am using Excel 2007. When I create my portfolio onto the vanilla version it updates the prices and forecast yields OK, I then 'save as' and close the file. Next time I open it, none of the buttons work.
I made a test just now using a new download version, enabling active content and then adding 100 Aviva along with BP. The prices and yields uploaded OK and I saved the file as 'test' and closed it. Upon reopening, none of the buttons work.
john
I made a test just now using a new download version, enabling active content and then adding 100 Aviva along with BP. The prices and yields uploaded OK and I saved the file as 'test' and closed it. Upon reopening, none of the buttons work.
john
-
- Lemon Quarter
- Posts: 2743
- Joined: November 4th, 2016, 11:12 am
Re: HYPTUSS 11.71 ControlCommandButton1
Try downloading another copy, and instead of 'save as', just 'save'. Do you get the same problem?johnstevens77 wrote:Thanks for the replies. I am using Excel 2007. When I create my portfolio onto the vanilla version it updates the prices and forecast yields OK, I then 'save as' and close the file. Next time I open it, none of the buttons work.
I made a test just now using a new download version, enabling active content and then adding 100 Aviva along with BP. The prices and yields uploaded OK and I saved the file as 'test' and closed it. Upon reopening, none of the buttons work.
john
RC
-
- Lemon Quarter
- Posts: 4108
- Joined: November 4th, 2016, 9:42 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Itsallaguess wrote:I think the answers to these two key questions will be the most interesting for me too...kiloran wrote: Have you made any changes to your downloaded version before you saw the error? ...
johnstevens77 wrote:I am using Excel 2007. When I create my portfolio onto the vanilla version it updates the prices and forecast yields OK, I then 'save as' and close the file. Next time I open it, none of the buttons work.
I have a machine with Windows 7 and Office 2007. I'll see if I can reproduce the problem...
-
- Lemon Quarter
- Posts: 4108
- Joined: November 4th, 2016, 9:42 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Breelander wrote:I have a machine with Windows 7 and Office 2007. I'll see if I can reproduce the problem...
Yes, I can.
'Save As > Excel Workbook' strips out the VB code. It does warn you that it will be a 'macro-free' workbook and that 'VB Project' won't be included.
In order to preserve the Macros you need to use either 'Save As > Excel Macro-Enabled Workbook (*.xlsm)'or 'Save As > Excel 97-2003 Workbook (*.xls)'.
No, Excel 97-2003 works after the first save only, subsequent saves seem to kill the macros without warning you. Use *.xlsm, that can be saved repeatedly and will continue to work.
-
- Lemon Slice
- Posts: 385
- Joined: November 4th, 2016, 4:55 pm
Re: HYPTUSS 11.71 ControlCommandButton1
How strange Is this something that has changed recently?Breelander wrote:Breelander wrote:I have a machine with Windows 7 and Office 2007. I'll see if I can reproduce the problem...
Yes, I can.
'Save As > Excel Workbook' strips out the VB code. It does warn you that it will be a 'macro-free' workbook and that 'VB Project' won't be included.
In order to preserve the Macros you need to use either 'Save As > Excel Macro-Enabled Workbook (*.xlsm)'or 'Save As > Excel 97-2003 Workbook (*.xls)'.
No, Excel 97-2003 works after the first save only, subsequent saves seem to kill the macros without warning you. Use *.xlsm, that can be saved repeatedly and will continue to work.
I have Excel 97-2003 Workbook (*.xls) format for all my HYPTUSS for years - currently with Windows 10 and Office 365 Excel Version 1909 which as far as I am aware are up-to-date.
Adrian
-
- Lemon Slice
- Posts: 395
- Joined: November 9th, 2016, 6:14 pm
Re: HYPTUSS 11.71 ControlCommandButton1
I think that that will work, I saved the previous version as macro enabled. Will give it a go nowBreelander wrote:Breelander wrote:I have a machine with Windows 7 and Office 2007. I'll see if I can reproduce the problem...
Yes, I can.
'Save As > Excel Workbook' strips out the VB code. It does warn you that it will be a 'macro-free' workbook and that 'VB Project' won't be included.
In order to preserve the Macros you need to use either 'Save As > Excel Macro-Enabled Workbook (*.xlsm)'or 'Save As > Excel 97-2003 Workbook (*.xls)'.
No, Excel 97-2003 works after the first save only, subsequent saves seem to kill the macros without warning you. Use *.xlsm, that can be saved repeatedly and will continue to work.
john
-
- Lemon Slice
- Posts: 395
- Joined: November 9th, 2016, 6:14 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Well, that seems to be fine at the moment. I ran a test adding Acacia Mining and Aviva,(not that I hold Acacia Mining!). Acacia mining caused a run-time error-2147012879 (80072ef1). As soon as I deleted Acacia Mining, it worked as it should. Now to recreate my HYP.
Thanks
john
Thanks
john
-
- Lemon Slice
- Posts: 395
- Joined: November 9th, 2016, 6:14 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Macro enabled works fine.
john
john
-
- Lemon Quarter
- Posts: 4108
- Joined: November 4th, 2016, 9:42 pm
Re: HYPTUSS 11.71 ControlCommandButton1
This behaviour (removing macros when saving as *.xls) seems to be specific to Excel 2007. By default 'Save' seems to use its standard *.xls format which doesn't include macros. You have to save as *.xlsm to reliably preserve macros. Saving as ' Excel 97-2003.. (*.xls)' does include macros, but opening then saving it again seems to 'update' it to the 2007 *.xls format (minus the macros).AJC5001 wrote:How strange Is this something that has changed recently?
I have Excel 97-2003 Workbook (*.xls) format for all my HYPTUSS for years - currently with Windows 10 and Office 365 Excel Version 1909 which as far as I am aware are up-to-date.
Glad to hear thatjohnstevens77 wrote:Macro enabled works fine.
-
- Lemon Half
- Posts: 8675
- Joined: November 4th, 2016, 1:16 pm
Re: HYPTUSS 11.71 ControlCommandButton1
Thanks for your valuable help with this issue Bree, it's great when we can get some extra eyes on these types of issues.Breelander wrote:
This behaviour (removing macros when saving as *.xls) seems to be specific to Excel 2007. By default 'Save' seems to use its standard *.xls format which doesn't include macros.
You have to save as *.xlsm to reliably preserve macros. Saving as ' Excel 97-2003.. (*.xls)' does include macros, but opening then saving it again seems to 'update' it to the 2007 *.xls format (minus the macros).
Cheers,
Itsallaguess
-
- Lemon Quarter
- Posts: 4108
- Joined: November 4th, 2016, 9:42 pm
Re: HYPTUSS 11.71 ControlCommandButton1
I'm happy I was in a position to help, it's good to be able to give something back in return for all the work you and Kiloran do on this.Itsallaguess wrote:Thanks for your valuable help with this issue Bree, it's great when we can get some extra eyes on these types of issues.
-
- 2 Lemon pips
- Posts: 122
- Joined: November 4th, 2016, 12:08 pm
Re: HYPTUSS 11.71 ControlCommandButton1
The xlsm format was introduced when Microsoft revamped the Excel file structures with Excel 2007. Any file containing VBA modules in Excel 2007 or later has to be saved as an xlsm file.Breelander wrote:This behaviour (removing macros when saving as *.xls) seems to be specific to Excel 2007. By default 'Save' seems to use its standard *.xls format which doesn't include macros.AJC5001 wrote:How strange Is this something that has changed recently?
I have Excel 97-2003 Workbook (*.xls) format for all my HYPTUSS for years - currently with Windows 10 and Office 365 Excel Version 1909 which as far as I am aware are up-to-date.
You have to save as *.xlsm to reliably preserve macros. Saving as ' Excel 97-2003.. (*.xls)' does include macros, but opening then saving it again seems to 'update' it to the 2007 *.xls format (minus the macros).
Glad to hear that