Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Import From with macro

Is it possible to write a macro that will import an existing form?

Thanks for all your help!
-Chad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Import From with macro

Import a userform from a file? Su

ActiveWorkbook.VBProject.VBComponents.Import "c:\UserForm1.frm"

--
Jim
"Chad" wrote in message
...
| Is it possible to write a macro that will import an existing form?
|
| Thanks for all your help!
| -Chad


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Import From with macro

hi,
if you are just import 1 form it might be better to do it manually.
open the file that has the form in it.
open the vb editor (alt + F11)
in the project window(far left), expand the project(filename) and right
click the form
click export. it will export as a .frm file.
you may wish to export to a floppy disk which can be transfer to other pc's
easily.
close the file
open the file you want the form in.
open the vb editor
in the project window, expand the project
right click the project name and click import
from the dialog box, select the form that you just exported and click ok
done

regards
FSt1

"Chad" wrote:

Is it possible to write a macro that will import an existing form?

Thanks for all your help!
-Chad

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Import From with macro

Thanks for the response. However, I am capable of doing it manually, but I
would like to do it within a macro. Is it possible to write this within a
macro?
Thanks,
Chad

"FSt1" wrote:

hi,
if you are just import 1 form it might be better to do it manually.
open the file that has the form in it.
open the vb editor (alt + F11)
in the project window(far left), expand the project(filename) and right
click the form
click export. it will export as a .frm file.
you may wish to export to a floppy disk which can be transfer to other pc's
easily.
close the file
open the file you want the form in.
open the vb editor
in the project window, expand the project
right click the project name and click import
from the dialog box, select the form that you just exported and click ok
done

regards
FSt1

"Chad" wrote:

Is it possible to write a macro that will import an existing form?

Thanks for all your help!
-Chad

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Import From with macro

That's perfect! Thank you very much!!!

-Chad

"Jim Rech" wrote:

Import a userform from a file? Su

ActiveWorkbook.VBProject.VBComponents.Import "c:\UserForm1.frm"

--
Jim
"Chad" wrote in message
...
| Is it possible to write a macro that will import an existing form?
|
| Thanks for all your help!
| -Chad



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import macro Gene Augustin Excel Discussion (Misc queries) 2 March 2nd 09 10:28 PM
Import macro from another workbook by macro Ivica Excel Programming 1 May 4th 05 12:26 PM
How to delete & import a macro Glen Mettler[_4_] Excel Programming 1 November 18th 04 05:30 PM
Import and run Macro Steph[_3_] Excel Programming 3 September 28th 04 09:33 PM
Macro import Lynn[_2_] Excel Programming 3 August 7th 03 10:18 PM


All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"