Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Import and Export

How do you export userforms from a project using VBA code?

Also how do you import userforms from a project using VBA code?


Thanks
Todd Huttenstine


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Import and Export

Hi Todd,

Did you check out Chip's page on programming the VBE?

http://www.cpearson.com/excel/vbe.htm

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


Todd Huttenstine wrote:
How do you export userforms from a project using VBA code?

Also how do you import userforms from a project using VBA code?


Thanks
Todd Huttenstine

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Import and Export

Yes with some of that code I was able to export all components, but the
only problem is, it exports userforms as .frm and .frx and I cant import
them back into a project.

If there is a way to import userforms (.frm and .frx) into a project, how?


"Jake Marx" wrote in message
...
Hi Todd,

Did you check out Chip's page on programming the VBE?

http://www.cpearson.com/excel/vbe.htm

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


Todd Huttenstine wrote:
How do you export userforms from a project using VBA code?

Also how do you import userforms from a project using VBA code?


Thanks
Todd Huttenstine



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Import and Export

Hi Todd,

Todd Huttenstine wrote:
Yes with some of that code I was able to export all components, but
the only problem is, it exports userforms as .frm and .frx and I cant
import them back into a project.

If there is a way to import userforms (.frm and .frx) into a project,
how?


I think this will work (worked for me):

Application.VBE.ActiveVBProject.VBComponents.Impor t "c:\userform1.frm"

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
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 or Import into WORD l_croft1[_2_] New Users to Excel 4 May 13th 09 03:58 AM
Import / export data Levi New Users to Excel 2 January 13th 09 06:14 AM
Import & Export lj Excel Discussion (Misc queries) 1 May 13th 08 02:07 AM
Import/Export ecruz04 Excel Discussion (Misc queries) 1 April 27th 07 08:17 AM
Automate Import/Export Steve Excel Discussion (Misc queries) 0 October 14th 05 06:38 PM


All times are GMT +1. The time now is 08:15 PM.

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

About Us

"It's about Microsoft Excel"