+ Reply to Thread
Results 1 to 3 of 3

Saving a file to new folder dependant on the first letter of the file name.

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    2

    Saving a file to new folder dependant on the first letter of the file name.

    Hi

    I'm trying to write a macro which will enable me to save a file to a specific folder depending on the first letter of the filename. The code also creates a folder if none already exists. The code below is what I have managed so far but I keep getting a Run-time error '438' I think when I try and define the fchoose variable. Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Saving a file to new folder dependant on the first letter of the file name.

    Dim fchoose As string
    fchoose = Left(Front_Sheet.Range("C2").Value, 1)

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Saving a file to new folder dependant on the first letter of the file name.

    Thanks, have sorted it now. Went with this and works a treat:

    Please Login or Register  to view this content.

+ 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