Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Date to text

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have a date in cell C4 that i want to use to open a file from my floppy A drive. The date is in the format March 10, 2002. The filename is in the format __020310.asc. How can I use cell C4 to open this file?

    Thanks in advance for the help.

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi NatExcel

    Try

    Dim strName As String
    strName = Format(Sheet1.Range("C4"), "yymmdd")
    MsgBox strName & ".file ext"

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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