Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2014, 09:05 AM
dherr dherr is offline How to use a UserForm (VisualBasic) in all Office programs Windows 8 How to use a UserForm (VisualBasic) in all Office programs Office 2007
Advanced Beginner
How to use a UserForm (VisualBasic) in all Office programs
 
Join Date: Nov 2014
Location: Austria
Posts: 45
dherr is on a distinguished road
Default How to use a UserForm (VisualBasic) in all Office programs

Hi all,

I have programmed a UserForm (VisualBasic) in Excel. Now I want to use this UserForm in each of the Office 2007 programs (Excel, Word, Powerpoint, ...).
Do you have a tipp how I can do that?

Greetings
Dietrich
Reply With Quote
  #2  
Old 12-01-2014, 09:18 PM
macropod's Avatar
macropod macropod is offline How to use a UserForm (VisualBasic) in all Office programs Windows 7 64bit How to use a UserForm (VisualBasic) in all Office programs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You would have to export the userform from Excel (you do this by selecting the useform's module and choosing File>Export File in the VBE). You can then import the module into a file in each of the other applications. Office applications don't have a built-in facility for sharing userforms - each application must host its own copy. Of course, whether your userform will work in another application depends on whether its code relies on VBA functions they don't support - each Office application has its own 'flavour' of VBA.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-02-2014, 12:40 AM
dherr dherr is offline How to use a UserForm (VisualBasic) in all Office programs Windows 8 How to use a UserForm (VisualBasic) in all Office programs Office 2007
Advanced Beginner
How to use a UserForm (VisualBasic) in all Office programs
 
Join Date: Nov 2014
Location: Austria
Posts: 45
dherr is on a distinguished road
Default

Thank you for your fast answer, Paul!!
Regards-
Dietrich
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I purchase Office 10 or 13 Ala Carte - I only need certain programs Crowsie Office 3 12-04-2013 09:01 PM
Macro in use in all programs in the Office Suite DerFarm Office 1 04-14-2012 10:14 AM
office not showing in Start/Programs colliedug Office 0 11-20-2011 11:50 AM
Weird display issue in Office programs GVEIT Office 0 01-13-2011 04:04 PM
Office Programs Refuse to Close mrice Visio 0 09-03-2009 09:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:25 AM.


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