Date function
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Date function

  1. #1
    Guest

    Default

     
    Hi,
    Am trying to write a macro that concatonates the name with the date.. eg. report -> report03042002. Tried using Date$ but can't get rid of the '-' seperator. Any ideas?

  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

    Try:

    Dim strFileName As String

    strFileName = WorksheetFunction.Substitute _
    ("report03-04-2002", "-", "")

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
  •  

 

 
DMCA.com