+ Reply to Thread
Results 1 to 7 of 7

after copy excel to word, how to prompt "save as" for word

  1. #1
    Registered User
    Join Date
    11-15-2016
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    6

    after copy excel to word, how to prompt "save as" for word

    I had done copy sheet content to word, after paste, I would like "save as" is prompted, so I can enter doc name and save it. I tried:
    - Application.GetSaveAsFilename, it pop up, enter a file name, eventually doesn't save anything, and I don't know it save excel file or word file.
    - ActiveDocument.SaveAs2 ("D:\Users\ushlia\Desktop\doc1"): I don't want create a file name in VBA, I just want "save as" pops up, so I can enter a name

    Any suggestion? Thanks!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: after copy excel to word, how to prompt "save as" for word

    GetSaveAsFilename doesn't save the file; it returns the name of a file so that additional code can save it -- or not.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-15-2016
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    6

    Re: after copy excel to word, how to prompt "save as" for word

    so, what additional code would be?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: after copy excel to word, how to prompt "save as" for word

    What's the code you have?

  5. #5
    Registered User
    Join Date
    11-15-2016
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    6

    Re: after copy excel to word, how to prompt "save as" for word

    Shg, below is the code, thanks for help
    ------------------------------------------------------
    Sub CopyToWord()

    Dim WordApp As Word.Application
    Dim WordDoc As Word.Document

    Set WordApp = CreateObject("Word.Application")
    WordApp.Visible = True
    Set WordDoc = WordApp.Documents.Add
    Range("a1:g42").Copy
    WordApp.Selection.PasteSpecial Link:=False

    Set WordDoc = Nothing
    Set WordApp = Nothing
    'need command to pop up SaveAs right here"

    End Sub

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: after copy excel to word, how to prompt "save as" for word

    Try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  7. #7
    Registered User
    Join Date
    11-15-2016
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    6

    Re: after copy excel to word, how to prompt "save as" for word

    Thank you so much, macropod!

+ 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] Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below?
    By notsmart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2016, 09:00 AM
  2. [SOLVED] (Challenge) Sum Order From Count "Center" Word To Start Word & "Center" Word To End Word
    By sanju2323 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2015, 12:58 AM
  3. Replies: 0
    Last Post: 10-29-2014, 09:56 PM
  4. Copy Excel Range into Word, without Normal.docm save prompt
    By Graham1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2011, 02:52 PM
  5. 2 Embedded & Linked Excel Spreadsheets in Word Not Updating after I press "save"
    By grapesofwrath in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2009, 01:43 AM
  6. MS Word and Excel "save as" will not drill down
    By Stuckhere in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 04:35 PM
  7. Replies: 1
    Last Post: 04-12-2006, 02:08 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