R raskew AWF VIP Local time Today, 17:11 Joined Jun 2, 2001 Messages 2,734 Nov 19, 2011 #1 Hi - Looking for the capability to go to (from a highlighted treeview control) specified module and display specified function/sub. All suggestions appreciated. Best wishes - Bob
Hi - Looking for the capability to go to (from a highlighted treeview control) specified module and display specified function/sub. All suggestions appreciated. Best wishes - Bob
V vbaInet AWF VIP Local time Today, 23:11 Joined Jan 22, 2010 Messages 26,374 Nov 19, 2011 #2 Hey raskew, You can use: Code: Application.VBE.ActiveVBProject.VBComponents("Form_[COLOR=Red]FormName[/COLOR]"). _ CodeModule.CodePane.SetSelection 8, 1, 12, 100 8 = start of code line 1 = start of column 12 = end of line 100 = end of column Obviously these values were just for demonstration.
Hey raskew, You can use: Code: Application.VBE.ActiveVBProject.VBComponents("Form_[COLOR=Red]FormName[/COLOR]"). _ CodeModule.CodePane.SetSelection 8, 1, 12, 100 8 = start of code line 1 = start of column 12 = end of line 100 = end of column Obviously these values were just for demonstration.
R raskew AWF VIP Local time Today, 17:11 Joined Jun 2, 2001 Messages 2,734 Nov 19, 2011 #3 Hi - Thanks much for that! I also answered my own question when I found where I'd used the OpenModule method of the Microsoft Access DoCmd object For example, this line of code: docmd.OpenModule "Utility Functions", "DeleteTableTest3" would display the DeleteTableTest3 sub in the Utility Functions module. Thanks again -- Bob
Hi - Thanks much for that! I also answered my own question when I found where I'd used the OpenModule method of the Microsoft Access DoCmd object For example, this line of code: docmd.OpenModule "Utility Functions", "DeleteTableTest3" would display the DeleteTableTest3 sub in the Utility Functions module. Thanks again -- Bob
V vbaInet AWF VIP Local time Today, 23:11 Joined Jan 22, 2010 Messages 26,374 Nov 19, 2011 #4 Well, there you go. That method skipped my mind.