+ Reply to Thread
Results 1 to 14 of 14

Help in code for Save As excel file in a folder

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Help in code for Save As excel file in a folder

    Hey guys I am stuck with a simple problem:

    I have this code to save excel file in a specified folder with filename - range C3 and T46.
    The code is assigned to button "PAID" in sheet INVOICE

    the code captures the text in range C3 but is not capturing range T46

    I want it to capture range C3 and T46.

    can anyone please help me .
    I have attached my workbook.
    Thank you

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by anilpatni1234; 06-28-2019 at 06:10 AM.

  2. #2
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey guys,
    Was anyone able to glance through it?

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,632

    Re: Help in code for Save As excel file in a folder

    Administrative Note:

    We don't expect you to bump threads more than once in 24 hours - Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Help in code for Save As excel file in a folder

    I don't know proper name to enter and sheet is autoclosing.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey KOKOSEK,
    Thank you for puttin that to my notice.
    I have updated the file . It will open now without asking any details.
    Thank you. (sorry for not checking that earlier)
    Attached Files Attached Files

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Help in code for Save As excel file in a folder

    Try like:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey KOKOSEK,

    This does not work. AT the moment it only captures C3.
    It is not able to capture T46

  8. #8
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey guys,
    I found a bug.

    The above code captures filename as - cell C3 and Q42.
    Even if i change filename range to other cell, but still it does not work.
    Please Login or Register  to view this content.
    i have chaned to filename to range cell T46 . But still it picks data of Q42.

    Any help ?

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Exclamation

    Hi !

    Obviously we can't help further without the last updated code as we are not on a mind reader forum ‼

  10. #10
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey Marc,

    The code is same as post no 1 which is
    Please Login or Register  to view this content.
    As you can see in the code
    Please Login or Register  to view this content.
    i have entered range t46 as filename 2

    however it picks cell Q42 as filename.
    It does not pick T46

  11. #11
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Restart your computer then open Excel alone and try again …

  12. #12
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Help in code for Save As excel file in a folder

    Hey Marc L,

    Thank you for the suggestion.

    I restarted my PC over 10 times and now finally it is working.
    Took time to solve it but finally wokred.

    Thank you so much for the help

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,220

    Re: Help in code for Save As excel file in a folder

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  14. #14
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Help in code for Save As excel file in a folder

    Quote Originally Posted by anilpatni1234 View Post
    Hey KOKOSEK,

    This does not work. AT the moment it only captures C3.
    It is not able to capture T46
    Why? In T46 you've got total on invoice and works for me.
    Attached Images Attached Images

+ 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. VBA macro code hel to save a copy all sheets or entire file in a folder
    By sctr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2017, 07:44 AM
  2. Replies: 2
    Last Post: 12-29-2015, 04:19 AM
  3. Need help with code to save file in a folder location based on a cell value
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 05:56 PM
  4. [SOLVED] Lookup folder from cell text, then save excel file in this folder
    By dodgybob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 09:00 AM
  5. [SOLVED] macro code to save file to new folder with values and not formulas
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2013, 10:51 PM
  6. Replies: 6
    Last Post: 08-11-2006, 03:41 PM
  7. [SOLVED] Need code to save file to new folder, erase from old folder
    By Ron M. in forum Excel General
    Replies: 1
    Last Post: 02-24-2006, 02:10 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