+ Reply to Thread
Results 1 to 8 of 8

Save a part of the file with a specific name

  1. #1
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Save a part of the file with a specific name

    Hello all,

    I have a macro that saves me my excel workbook, in a specific location, with a name from a specific cell.

    The problems i have right now is this:
    - i don't want the macro to save the entire sheet 1, only A1:V100


    This is the code i have right now:

    Please Login or Register  to view this content.


    Thank you!
    Last edited by julius2017; 10-26-2017 at 04:22 AM.

  2. #2
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Re: Save a part of the file with a specific name

    Done!
    Sorry about that, Ali!
    Best regards

  3. #3
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Re: Save a part of the file with a specific name

    Please help !
    Last edited by julius2017; 10-26-2017 at 04:21 AM.

  4. #4
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Re: Save a part of the file with a specific name

    Please see edited original post.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Save a part of the file with a specific name

    How about this ?
    Please Login or Register  to view this content.
    Last edited by bakerman2; 10-26-2017 at 06:48 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Re: Save a part of the file with a specific name

    Thank you for your ansewer, bakerman.

    Your code gives me an error on this line:

    ThisWorkbook.Sheets("Delivery").Range("A1:V100").Copy NewBook.Sheets(1).Range("A1")
    Last edited by julius2017; 10-26-2017 at 07:53 AM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Save a part of the file with a specific name

    That line doesn't exist in the code posted ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    01-15-2017
    Location
    Europe
    MS-Off Ver
    2016
    Posts
    43

    Re: Save a part of the file with a specific name

    I changed the name of the sheet, to what i need. Post correct now.
    And it seems that everything is fine... Bakerman's VBa it's working ok.

    Is there any change i could keep the original formating and paste everything as values?

    Thank you

+ 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. [SOLVED] Save PDF to users desktop and use value of specific cell in part of the name
    By Maike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2017, 04:33 PM
  2. [SOLVED] Macro to manually choose PDF file and save it to a specific location with specific name
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2014, 07:47 AM
  3. Replies: 1
    Last Post: 10-25-2013, 12:49 AM
  4. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  5. Want to save a file with part of the name derived from an inputbox
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2007, 04:24 PM
  6. Save file using part of folder name
    By Object in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-30-2006, 11:25 PM
  7. [SOLVED] reading a range name as part of Save-as file
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2005, 01:38 PM

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