+ Reply to Thread
Results 1 to 4 of 4

Renaming files macro - Compile Error

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Renaming files macro - Compile Error

    Right guys, I'm running in to an error when I run this code, I found it on another site after alot of struggle, could someone see where I may have screwed this up when removing pieces I didn't need.

    The error I get when I run it is; "Compile error: User-Defined type not defined", and it highlights
    Please Login or Register  to view this content.

    The full code i'm currently using at the moment is;

    Please Login or Register  to view this content.
    Any help would be greatly appreciated. Thanks in advance
    Last edited by JasHogan; 04-15-2010 at 07:06 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Buggy Code

    You need to set a reference (via the Tools-References menu in the VBEditor) to the Microsoft Scripting Runtime library.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Buggy Code

    Ah, this option is greyed out for me, is there any way I can do that with a section of code? The IT department here seem to try and block most things like that but will let you manually input them

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Buggy Code

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ 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