+ Reply to Thread
Results 1 to 2 of 2

References needed to run my code

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    44

    References needed to run my code

    Hello I am trying to create a code that searches through the current directory and opens and reads every workbook in this directory
    As a starting point I am using this code:
    When I run the code I get the message "User-defined type not defined"

    What references shall I ticked in order to make it work
    I am using excel 2010

    Many Thanks
    Dora
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: References needed to run my code

    Hello Doruli,

    You need to set a reference to the Microsoft Scripting Runtime library.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Worksheet References Help needed
    By Rikkdh in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 06-19-2013, 06:51 AM
  2. Connecting to databases via VBA - references needed
    By gmatoka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2013, 10:27 PM
  3. cell references help needed
    By DaveCott in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-13-2011, 08:20 PM
  4. Line of Code to set references
    By Myles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2006, 12:15 AM
  5. Code that references the name of a cell
    By pwrichcreek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2006, 05:10 PM

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