+ Reply to Thread
Results 1 to 2 of 2

Need to open fiile saved w name that included what was in C50. But current C50 will be +1

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Need to open fiile saved w name that included what was in C50. But current C50 will be +1

    Save 1
    xThisWorkbook.SaveAs ThisWorkbook.Path & Application.PathSeparator & Sheet1.Range("C41") & ("-") & Sheet1.Range("C39") & ("- Draw # ") & Sheet1.Range("C50") & ".xlsm"x

    Save 2
    xThisWorkbook.SaveAs ThisWorkbook.Path & Application.PathSeparator & Sheet1.Range("C41") & ("-") & Sheet1.Range("C39") & ("- Ready to post Draw # ") & Sheet1.Range("C50") & ".xlsm"x

    Want to open Save1 while closing Save 2

    But, to open using what shows in Save 1, need to change the C50 to C50 minus 1 since what is in C50 will be 1 higher than it was when it was saved.

    Have tried many ways but can not find the key, so have to ask - How do I do a C50 minus 1 in the "Save as"?

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Need to open fiile saved w name that included what was in C50. But current C50 will be

    Hi,

    You do mean the value in C50 to be -1?

    Is it certain to be a number all the time?
    Sheet1.Range("C50") = Sheet1.Range("C50") - 1

    Grtz
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

+ 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. Replies: 4
    Last Post: 04-07-2018, 06:28 AM
  2. Macro to run when saved but to stay on current sheet
    By Zimmerman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-19-2017, 04:03 PM
  3. Append saved file name with current date and in .xlsm format
    By SAThomas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2012, 01:51 PM
  4. Replies: 4
    Last Post: 11-16-2012, 11:46 AM
  5. Opening file saved as current date
    By Yepp12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2005, 10:59 AM
  6. [SOLVED] Setting up a fiile/template to generate a new number when opened?
    By Ladybug726 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2005, 03:50 PM
  7. [SOLVED] Can't Open Saved File
    By JEFF in forum Excel General
    Replies: 18
    Last Post: 03-02-2005, 04:06 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