Name Manager

LisaGreen
5StarLounger
Posts: 964
Joined: 08 Nov 2012, 17:54

Name Manager

Post by LisaGreen »

This is mostly for Jan Karel...

Eerst... Beste Wensen!!!

For years I thought people were saying Best Events!! Sooo I'll say that too... Best Events Jan Karel.

I have a tiny prob with the name manager... It's persistent between sessions in the VBE. That is... it comes up as a toolbar in the vbe. If I close it it's gone for that session. When I reopen a workbook... there it is in the VBE again. I can only get rid of it if I disable the add in... which I don't really want to do 'cauze it's a good 'un. :-)

I've started a thread on the code cage about it. There's a pic of the VBE there.
http://www.thecodecage.com/forumz/micro ... names.html" onclick="window.open(this.href);return false;
Any help??

TIA
Lisa

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Name Manager

Post by HansV »

Jan Karel will have to confirm this, but I suspect that the toolbar is created anew each time the add-in is loaded.

If the toolbar really bothers you, you could create a macro in your Personal Macro Workbook that hides the toolbar, and assign this macro to a Quick Access Toolbar button:

Code: Select all

Sub HideNMToolbar()
    On Error Resume Next
    Application.VBE.CommandBars("RangeNames").Visible = False
End Sub
You could even run it automatically when Excel is started, by calling it from the Workbook_Open event procedure in the ThisWorkbook module of your Personal Macro Workbook:

Code: Select all

Private Sub Workbook_Open()
    Application.OnTime Now + TimeSerial(0, 0, 1), "HideNMToolbar"
End Sub
The event procedure calls HideNMToolbar with a slight delay to give all add-ins the time to load.

Important: You must trust programmatic access to the Visual Basic project, otherwise HideNMToolbar won't work. You can set this in File > Options > Trust Center > Trust Center Settings... > Macro Settings:
S0488.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 656
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Name Manager

Post by Jan Karel Pieterse »

Hi Lisa,

Indeed, the toolbar is recreated when you reload Excel (in fact, that is the only way to have toolbars in the VBE).
Is it in your way that much?
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 656
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Name Manager

Post by Jan Karel Pieterse »

I have updated Name Manager so it remembers the visible state.
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Name Manager

Post by HansV »

Thank you, Jan Karel!
Best wishes,
Hans

LisaGreen
5StarLounger
Posts: 964
Joined: 08 Nov 2012, 17:54

Re: Name Manager

Post by LisaGreen »

Cool!!!!... Thanks everyone. Hans... Over on the codecage I did say to Jan Karel that it was only a little teeny thing.... Jan Karel... thank you soooo much for bothering!!

Where do you save the state?

Hugs... Lisa

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 656
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Name Manager

Post by Jan Karel Pieterse »

Registry:
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Name Manager 4.2\VBECommandbar
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com

LisaGreen
5StarLounger
Posts: 964
Joined: 08 Nov 2012, 17:54

Re: Name Manager

Post by LisaGreen »

Thanks Jan Karel... Any news on the redo of the indenter yet please??

Lisa

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 656
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Name Manager

Post by Jan Karel Pieterse »

No, unfortunately not. And I don't "own" the code, so...
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com

LisaGreen
5StarLounger
Posts: 964
Joined: 08 Nov 2012, 17:54

Re: Name Manager

Post by LisaGreen »

Boo Hoo!!!... I've tried to email Stephen Bullen a number of times about various things and never gotten a reply. Do you know if he's okay or still active around Excel? Has he retired maybe?

Lisa

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 656
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Name Manager

Post by Jan Karel Pieterse »

Stephen is not active in the Excel community any more. But I see you got a response from him after all :-)
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com