+ Reply to Thread
Results 1 to 3 of 3

Macro to batch change file type

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12

    Macro to batch change file type

    Hi all,

    I am trying to create a macro that batch changes xls files to csv files.. i have come up with this so far..

    Please Login or Register  to view this content.
    the only problem is that I get an error on GetFoldername..

    hope someone can help sort this

    Thanks

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Macro to batch change file type

    Good afternoon dwain
    Quote Originally Posted by dwain View Post
    the only problem is that I get an error on GetFoldername..
    GetFolderName isn't a standard Excel instruction - it's actually a UDF (user defined function) whcih is called which uses API's (Windows system files) to show the standard Windows "select folder" gadget. You need to include the UDF code within your module. The code for this is fairly prevalent on the internet, but here's a link for you :

    http://www.gtwiki.org/mwiki/index.ph...=GetFolderName

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12

    Re: Macro to batch change file type

    Thanks , sorted

+ 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