+ Reply to Thread
Results 1 to 8 of 8

Problem for file extension

  1. #1
    Forum Contributor
    Join Date
    07-04-2017
    Location
    Phillipines
    MS-Off Ver
    2016
    Posts
    169

    Problem for file extension

    Hi everyone,

    I have a problem for the "Left" code anyone help me to fix this code.

    Thanks,

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Problem for file extension

    What is your problem? The code works

    Extension = Left(ThisWorkbook.Name, Len(ThisWorkbook.Name) - 4) & " Backup"

    If workbook name is "thisFile.xlsm" then Extension = "thisFile."

    What should the value of Extension be?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    07-04-2017
    Location
    Phillipines
    MS-Off Ver
    2016
    Posts
    169

    Re: Problem for file extension

    Hi Kev_
    I want like this "name of workbook & backup"
    if i close the workbook the error show
    I hope you understand

    sample1.jpg
    Thanks for the help.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Problem for file extension

    Hello
    Untitled.png
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Contributor
    Join Date
    07-04-2017
    Location
    Phillipines
    MS-Off Ver
    2016
    Posts
    169

    Re: Problem for file extension

    Thank You very much YasserKhalil you solve my problem.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Problem for file extension

    You're welcome. Glad I can offer some help

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Problem for file extension

    'I want like this "name of workbook & backup"
    Try this method:
    Please Login or Register  to view this content.
    or as one line:
    Please Login or Register  to view this content.
    Last edited by kev_; 09-06-2017 at 06:36 AM.

  8. #8
    Forum Contributor
    Join Date
    07-04-2017
    Location
    Phillipines
    MS-Off Ver
    2016
    Posts
    169

    Re: Problem for file extension

    Thanks you Kev_ i try your suggestion.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to open a list of spreadsheet and save them under file extension xlsx file
    By gdclyde in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2017, 07:16 PM
  2. File name + Directory Path too long.......saves file without extension..........
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2016, 03:17 AM
  3. Replies: 4
    Last Post: 10-23-2013, 12:54 AM
  4. Replies: 6
    Last Post: 05-01-2013, 05:33 PM
  5. problem changing file extension on backp
    By davidparkes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2011, 07:11 PM
  6. Replies: 4
    Last Post: 10-24-2008, 11:49 AM
  7. [SOLVED] Additional file with no extension created during File Save As proc
    By Peter Rooney in forum Excel General
    Replies: 2
    Last Post: 08-11-2005, 10:05 AM

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