Results 1 to 4 of 4

Run time error 50034 method export of object vb component failed

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Glasgow
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    105

    Thumbs up Run time error 50034 method export of object vb component failed

    I keep getting this error on this line

    [CODE]ThisWorkbook.VBProject.VBComponents("Module2").Export FileName[\CODE]

    of this code:

    Sub Transfer_Module()
    
    Dim FileName As String
    
    FileName = "C:\Module2.bas"
    
    ThisWorkbook.VBProject.VBComponents("Module2").Export FileName
    
    ActiveWorkbook.VBProject.VBComponents.Import FileName
        
    Kill FileName
    End Sub
    I have scanned for registry errors but it is still happening can anyone help?

    Thank you in advance
    Libby
    Last edited by Libster78; 01-31-2010 at 09:08 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1