Consulting

Results 1 to 3 of 3

Thread: Excel VBA - Check excel file names and change if necessary

  1. #1
    VBAX Newbie
    Joined
    Feb 2018
    Posts
    1
    Location

    Excel VBA - Check excel file names and change if necessary

    Hello everyone!

    I receive a lot of files that are not with the name that I want. I want the files have a specific way like DD.MM.YYYY_Plannumber
    And my question is if is possible with excel vba to check if the name of the file is correct and if is not I want to give me the possibility to change automatically to that form.

    Every help is good,Thanks,
    Luis

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    It would help to know all the possible name variations you can encounter in this effort.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    I want the files have a specific way like DD.MM.YYYY_Plannumber
    I'd suggest YYYY-MM-DD_***xx so that you can sort chronologically, and the 'dot' doesn't get mixed up with the extension

    What determines the 'date' you use? The day you received it, the day it was sent, the day it was prepared, last updated, etc.

    Also, where does 'Plannumber' come from, and what does it look like: always the same number of digits with leading 0's, or text, or both, or just a number of varying length, etc.??
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •