+ Reply to Thread
Results 1 to 3 of 3

Save As new woorkbook from Input Name

  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    Israel
    MS-Off Ver
    Excel 2019
    Posts
    79

    Save As new woorkbook from Input Name

    Hello Experts

    I have one line with input box
    Please Login or Register  to view this content.
    And i want to open new workbook with that name

    How do I save the new woorkbook with the name from the InputBox?

    Thanks

    The Shark Man
    Last edited by Shark Man; 04-16-2009 at 02:07 AM.

  2. #2
    Registered User
    Join Date
    04-15-2009
    Location
    Israel
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Save As new woorkbook from Input Name

    Hay experts
    I'm sure its easy for you

    Shark Man

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Save As new woorkbook from Input Name

    Use the following macro in your excel vba part, hope this will help you.

    Sub Test()
    Dim wBook As New Workbook
    currentsheet = InputBox("Name")
    Set wBook = Application.Workbooks.Add
    wBook.SaveAs "D:\" & currentsheet & ".xls"
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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