+ Reply to Thread
Results 1 to 2 of 2

cannot open file from macro

  1. #1
    Registered User
    Join Date
    06-29-2007
    Posts
    1

    cannot open file from macro

    I am using a vb form to create an interface for importing and charting data from external files.
    While running the form from the vb editor everything works fine.
    To make my form appear for the users of my spreadsheet I placed Form.show in the Workbook_Open subroutine. When launching my form this way I get Runtime error 52 "Bad file name or number". Usung the debugger I checked the file name and it was correct, I also changed my code to use FreeFile to select the file number for me.
    Any help would be greatly appreciated.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You wil get little assistance without posting your code or a copy of the workbook
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ Reply to Thread

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