I have a macro project called MyMacros and it shows up in the Macro Explorer. However when I go to Tool-> Options ->Environment ->Keyboard, the 'Show commands containing:' listbox does not show any entries for Macros.MyMacros. I only see Macros.Samples... Is this normal behavior? I am using VS 2008 SP1. John Dalberg
Don't know if you still have this problem but if anyone else stumbles here... Either methods without an accessbility modifier (e.g. "Public") defaulted to public in VS2005 and private in VS2008, or the keyboard shortcuts now only picks up public macro methods. Either way, if you ensure the macros are public they should then appear. "John Dalberg" wrote: > I have a macro project called MyMacros and it shows up in the Macro > Explorer. However when I go to Tool-> Options ->Environment ->Keyboard, the > 'Show commands containing:' listbox does not show any entries for > Macros.MyMacros. I only see Macros.Samples... > > Is this normal behavior? I am using VS 2008 SP1. > > John Dalberg >
Actually I was close but not quite there. I had shared functions in a class when it only worked if I went back to modules and subs.. so much for "OOP" in VB. "Benjamin D Mackie" wrote: > Don't know if you still have this problem but if anyone else stumbles here... > > Either methods without an accessbility modifier (e.g. "Public") defaulted to > public in VS2005 and private in VS2008, or the keyboard shortcuts now only > picks up public macro methods. > > Either way, if you ensure the macros are public they should then appear. > > "John Dalberg" wrote: > > > I have a macro project called MyMacros and it shows up in the Macro > > Explorer. However when I go to Tool-> Options ->Environment ->Keyboard, the > > 'Show commands containing:' listbox does not show any entries for > > Macros.MyMacros. I only see Macros.Samples... > > > > Is this normal behavior? I am using VS 2008 SP1. > > > > John Dalberg > >