Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Export and Import Userform from Excel-file to another Excel-file

Hi,
How can I - using VBA - export Userform to another file - or just copy...

Using Excel 2003 SP2.

Thanks
MakeLei
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Export and Import Userform from Excel-file to another Excel-file

Hello MakeLei

Tested on Excel 2003 SP2 WinXpPro SP2:
(Make sure second file is open and amend accordingly)

Sub ExportAndImport()
Dim InitialPath$
InitialPath = ThisWorkbook.Path & Application.PathSeparator
ThisWorkbook.VBProject.VBComponents("Userform1").E xport "usef.frm"
'second workbook to receive userform
Workbooks("Book.xls").VBProject.VBComponents.Impor t InitialPath & "usef.frm"
End Sub

HTH
Cordially
Pascal


"Makelei" a écrit dans le message de
news: ...
Hi,
How can I - using VBA - export Userform to another file - or just copy...

Using Excel 2003 SP2.

Thanks
MakeLei



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
Export Import Modules File Name error Noemi Excel Programming 2 October 19th 06 05:54 AM
Export excel file to semicolon delimited text file capitan Excel Discussion (Misc queries) 5 April 7th 05 03:06 AM
Import VBA Code in Excel-File ? (Export VBA Code to file) Matthias Pospiech Excel Programming 2 March 22nd 05 04:56 PM
How do I import text file, analyze data, export results, open next file Geoffro Excel Programming 2 March 6th 05 08:02 PM
Export / Import to / from Text file C_Ascheman Excel Programming 6 February 22nd 05 11:49 PM


All times are GMT +1. The time now is 01:04 AM.

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"