Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Force code to compile
Once a long time ago, Tom Ogilvy passed a short code to me that would
essentially simulate a click of the [Compile VBAProject] button in the VBE. The objective is to force the code in the current module to (re)compile. I didn't have any luck searching for it. Could someone (if not Tom) please post this code again? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Force code to compile
How about:
thisworkbook.VBProject.VBE.CommandBars("Menu Bar"). _ controls("Debug").Controls("Compi&le VBAProject").Execute -- Regards, Tom Ogilvy "quartz" wrote in message ... Once a long time ago, Tom Ogilvy passed a short code to me that would essentially simulate a click of the [Compile VBAProject] button in the VBE. The objective is to force the code in the current module to (re)compile. I didn't have any luck searching for it. Could someone (if not Tom) please post this code again? Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Force code to compile
That's the one! Thanks again Tom.
"Tom Ogilvy" wrote: How about: thisworkbook.VBProject.VBE.CommandBars("Menu Bar"). _ controls("Debug").Controls("Compi&le VBAProject").Execute -- Regards, Tom Ogilvy "quartz" wrote in message ... Once a long time ago, Tom Ogilvy passed a short code to me that would essentially simulate a click of the [Compile VBAProject] button in the VBE. The objective is to force the code in the current module to (re)compile. I didn't have any luck searching for it. Could someone (if not Tom) please post this code again? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Compile VBA code? (Passwording too weak a protection scheme?) | Excel Discussion (Misc queries) | |||
code to force xls file to open after several hours passed | Excel Programming | |||
Compile VBA code | Excel Programming | |||
Compile Error in Code | Excel Programming |