Compile Error In Hidden Module Mail Merge
Contents |
soon) Ruby (coming soon) Getting Started Code Samples Resources Patterns and Practices App Registration Tool Events Podcasts Training API
Compile Error In Hidden Module Excel 2010
Sandbox Videos Documentation Office Add-ins Office Add-in Availability Office Add-ins Changelog compile error in hidden module solver code Microsoft Graph API Office 365 Connectors Office 365 REST APIs SharePoint Add-ins Office UI Fabric Submit
Compile Error In Hidden Module Thisworkbook
to the Office Store All Documentation https://www.yammer.com/ http://feeds.feedburner.com/office/fmNx Office VBA language reference Visual Basic language reference Error Messages Error Messages Compile error in hidden module:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Compile Error In Hidden Module: Hstbarpublic
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join compile error in hidden module word 2013 the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes
Compile Error In Hidden Module Mac
a minute: Sign up compile error in hidden module Word 2010 up vote 0 down vote favorite I have compiled a macro to format a generated report. I have added this to a custom tab on the Word ribbon. Whenever i https://msdn.microsoft.com/en-us/library/office/gg251410.aspx try to run the macro by pressing the button on the custom tab i get the following error. Compile error in hidden module: CallBackForRibbon CallBackForRibbon is the name of the module i have the callback for the custom ribbon in. Module contains the code below: 'Callback for FORMAT onAction Sub Format(control As IRibbonControl) Prog_Format End Sub Prog_Format is the name of the sub which contains the formatting macro. I have tested the button on the ribbon with a simple message box http://stackoverflow.com/questions/34952677/compile-error-in-hidden-module-word-2010 and this works correctly so no issues with the call back but when i try to run the sub with the formatting macro i get the error. The macro also runs fine in the VBA editor. Can anyone point me to where i am going wrong? vba callback ms-word word-vba share|improve this question edited Jan 22 at 18:54 Deduplicator 27.8k63265 asked Jan 22 at 17:30 ian 91 Is that all of the code in that module? –Macro Man Jan 22 at 17:37 Have you tried putting a break-point in Prog_Format then stepping through it when it's called from the Ribbon? Errors in code called by the procedure linked to the UI are often attributed to that procedure, rather than the one in which they actually occur... –Cindy Meister Jan 22 at 17:52 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote You can check where the compile error is by actually compiling your module before saving: Open the module in the VBA editor From the menu, choose Debug -> Compile Project The IDE should now highlight the first line with a compile error. share|improve this answer answered Jan 24 at 8:52 Dirk Vollmar 106k34181252 add a comment| up vote 0 down vote I have found the answer. The error was occurring because the Module containing the Sub Prog_Format was also called Prog_Format. I was not aware that these could not be the same nam