![]() |
#1
|
|||
|
|||
![]()
Hello,
I have a problem with executing VBA modules that are associated to a button in the ribbon (or quick access toolbar). I have developed two VBA Word modules: "VBAMod1" and "VBAMod2" I have both of these VBA modules saved as .bas files. Here are the steps I took: 1. Open Visual Basic Editor (alt + F11) in Word 2. Right Click "Normal" & import file > "VBAMod1" (this imported to global doc) 3. Do step 2, but import file "VBAMod2" (this imported to global doc) Now I have my two VBA modules accessible globally (to tie to a button, as desired). When I go to Word Options > Customize Ribbon, I created a new "tab". I selected "Macros" on the right and have added my first and second macros to this new tab (making them executable buttons on this tab in my Word ribbon). When I try to use these two buttons (which execute two seperate modules), both buttons on this new tab of my ribbon execute only ONE module, regardless of what button was clicked. Does anyone know why it executes the WRONG module? |
Tags |
vba code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
LadyAna | Word | 1 | 12-06-2014 10:39 PM |
![]() |
norwood | Word VBA | 2 | 02-03-2014 06:49 PM |
![]() |
bville | Word VBA | 2 | 04-11-2013 03:30 PM |
![]() |
sanlen | Project | 1 | 06-25-2012 04:17 PM |
Table of Contents - Direct Field Implementation - Auto-Update Numbering | ztag | Word | 3 | 01-19-2012 03:04 PM |