Results 1 to 10 of 10

Thread: Auto workbook create
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jun 2013
    Location
    Mumbai, India
    Posts
    242
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Auto workbook create

    Hi Everyone,

    i have a code which create workbook into the specific folder. however i want to create multiple folder by the date name:

    for example

    code is

    ActiveWorkbook.SaveCopyAs "D:\TEMP\XXXX.XLS"

    so i want, this XXXX file name should depend on A1. where we would have date. so i can create multiple copy of current work with the date bifurcation



  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto workbook create

    How about
    Code:
    "D:\TEMP\" & Format(Range("A1").Value, "dd-mm-yyyy") & ".XLS"
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    Board Regular
    Join Date
    Jun 2013
    Location
    Mumbai, India
    Posts
    242
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto workbook create

    thanks i would check and seems it would work too

    by the way fluff, is there any chance if i can add a code in above that

    i want to hide a specific sheet in copy one. like this button would be on sheet name "East" so when i create copy that sheet should be hidden. possible?

  4. #4
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto workbook create

    Is the code in the sheet module of sheet "East"?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  5. #5
    Board Regular
    Join Date
    Jun 2013
    Location
    Mumbai, India
    Posts
    242
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto workbook create

    no code is on the button placed on east sheet.

  6. #6
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto workbook create

    In that case I don't understand what you are asking.
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  7. #7
    Board Regular
    Join Date
    Jun 2013
    Location
    Mumbai, India
    Posts
    242
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto workbook create

    I have a button to create a new workbook. the one which i asked initially.

    Under the new workbook there is a sheet by the name of East. I want that sheet should be hidden

  8. #8
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto workbook create

    Do you always want to hide the "East"?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  9. #9
    Board Regular
    Join Date
    Jun 2013
    Location
    Mumbai, India
    Posts
    242
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto workbook create

    Yes.it should nt be visible. Till the tym smone unhide it

  10. #10
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto workbook create

    In that case add this line, before the saveas line
    Code:
    Sheets("East").Visible = xlSheetHidden
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •