Once I close and reopen excel the reference to Microsoft Scripting Runtime getting disabled from excel vba.
Any suggestion about how to keep it enabled?
Once I close and reopen excel the reference to Microsoft Scripting Runtime getting disabled from excel vba.
Any suggestion about how to keep it enabled?
Last edited by :) Sixthsense :); 01-12-2015 at 05:01 AM.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
References are workbook specific. If you really want it set for all workbooks (which seems odd to me), you would need to create a book.xltm template and use that.
Everyone who confuses correlation and causation ends up dead.
Hi Rory,
Thanks for the solution
Is it possible to establish the reference in the xlStartup file so that it can be made available in all excel workbook? I tried to do this and see how it works but I don't see any excel file in xlStart and startup folder. Both are empty...
As per your suggestion I have to use that template file (ALONE) whenever I am in need of using Scripting.Dictionary reference made available to use? Rather than using any workbook without establishing the connection manually...?
Please let me know if there is any solution to make it readily available in all excel workbook I create/open![]()
Hi,
I prefer to use late binding but when I really need early binding, I start from a template workbook …
Hi Marc L,
Thanks for suggesting Late Binding method, but while writing code I would like to use Early Binding method and when I release the code for OP's I will convert it to late binding.
But I want to keep the references established in all workbooks instead of manually building the references. Even microsoft doesn't kept a search field to quicky pick the desired reference. Scrolling down to the reference is a hectic one for me..
Any other suggestions?![]()
Why do you want to add the reference to existing workbooks since they presumably don't already require it?
BTW, if you add the reference to your Personal macro workbook, that reference should remain near the top of the references list even when you have another workbook active, so you don't have to go looking for it.
Mostly, I download the OP's file and write VBA code and I would like to use early binding for (Intellisense / auto-completion) accessing the dictionay propery/methods which will help me in writing the code with lesser time.
Wow!!! That is a nice tip and I created a record macro to get the Personal.xls and turned on the References. As you said its showing in top in fresh workbooks for easy access.
Still looking to make it enabled in all workbooks....![]()
![]()
![]()
If it's only for the Dictionary object, wouldn't it be easier to just learn them? - there's only about half a dozen
And Dictionary object is in VBA inner help …
___________________________________
Je suis Charlie
Hi Kyle123,
I know it is very less in Dictionary (i.e.) The Dictionary class has four properties and six methods only so it is not a big deal.
But I am becoming very lazy nowadays or I don't want to waste my time in typing the properties/methods of the objects. I would like to auto load it to save my code writing time also I need not to add/keep the unnecesary junks (Methods/Properties) in my mind when it is readily available in the system itself![]()
Assuming you have trusted access to the VBA project set in your Trust Center settings, you could use:
but you have to run it per workbook.![]()
Please Login or Register to view this content.
Or run it on the application's workbook_open event
Hi,
Or you can use the notorious sendkeys() :
Run the code in VBA window, not in spreadsheet window. The code itself can be stored in Personal.xl* for later use.![]()
Please Login or Register to view this content.
Regards
1. I care dog
2. I am a loop maniac
3. Forum rules link : Click here
3.33. Don't forget to mark the thread as solved, this is important
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks