Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Combine a Macro and Form from one workbook to then use on any excel workbook


Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2012, 02:05 AM
mkirzon mkirzon is offline
Newcomer
 
Join Date: Aug 2012
Posts: 3
Default Combine a Macro and Form from one workbook to then use on any excel workbook


I have created a Macro that depends on variables set by a user's input into textboxes within a User Form that I created in the same workbook.

As I want to provide this combination of macro/form for users that I do not want to have to copy code, or import the macro file or form file into each excel workbook they work with, I was wondering if there was a way to automate this.

Ideally, the macro and form would somehow be merged, and I have an executable(or equivalent) that allows me to use a windows browser to select the excel file into which to import the macro and form, and give a quick option to run (such as another message box or command button)

Is this achievable?

Thanks in advance.
Reply With Quote
  #2  
Old 08-13-2012, 08:12 AM
ZKat ZKat is offline
Centurion
 
Join Date: May 2006
Posts: 132
Default

mkirzon,

Quote:
As I want to provide this combination of macro/form for users that I do not want to have to copy code, or import the macro file or form file into each excel workbook they work with, I was wondering if there was a way to automate this.
Is there any reason you cannot build a an Excel template with your form and code and roll those workbooks out to your end users?

Why mess around with copying code at all?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->