+ Reply to Thread
Results 1 to 4 of 4

Add certain naming convention

  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Add certain naming convention

    Hi,

    I have some code to export a tab from my workbook and save it to the same location as the workbook from where the macro is run, along with the same name but it includes a date and time stamp. What need is to be able to add "CONS" to the start of the filename? I keep getting errors though?!?!?

    Code below

    Please Login or Register  to view this content.
    Many thanks!!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Add certain naming convention

    You do not say what the error is.

    Please Login or Register  to view this content.
    Also what does the variable FileFormatNum contain?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-08-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Add certain naming convention

    I'm getting the run-time error '1004' with that code.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Add certain naming convention

    Your code or mine?

    We need more information about the variables in your code snippet.

+ 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