Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-16-2015, 01:16 PM
dangal333 dangal333 is offline Word VBA Macro Implementation - Please Help Windows 8 Word VBA Macro Implementation - Please Help Office 2013
Novice
Word VBA Macro Implementation - Please Help
 
Join Date: Jan 2015
Posts: 3
dangal333 is on a distinguished road
Exclamation Word VBA Macro Implementation - Please Help

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?
Reply With Quote
 

Tags
vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA Macro Implementation - Please Help Macro Question: Need help making a macro to highlight the first word in every sentence LadyAna Word 1 12-06-2014 10:39 PM
Word VBA Macro Implementation - Please Help Word 2003 Macro problem running in Word 2010 norwood Word VBA 2 02-03-2014 06:49 PM
Word VBA Macro Implementation - Please Help Word Macro to publish document as pdf (Word 2010) bville Word VBA 2 04-11-2013 03:30 PM
Word VBA Macro Implementation - Please Help 5 days/week during planning & 7 days/week during implementation 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft