Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Save file as the contents of two cells.

  1. #1
    New Member
    Join Date
    Feb 2002
    Location
    Eau Claire, WI
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I read Nate's answer to saving a file as the contents of one cell:

    Sub save_itas2()
    fname = Application.GetSaveAsFilename _
    (InitialFilename:=Range("a1"), _
    FileFilter:="Excel Files (*.xls),*.xls", FilterIndex:=0, Title:="Save As")
    If fname <> "False" Then
    ActiveWorkbook.saveas Filename:=fname
    End If

    End Sub

    How do I save the file as the contents of two cells?

    All help is appreciated.

  2. #2
    Guest

    Default

    On 2002-03-01 21:56, Billy wrote:
    I read Nate's answer to saving a file as the contents of one cell:

    Sub save_itas2()
    fname = Application.GetSaveAsFilename _
    (InitialFilename:=Range("a1"), _
    FileFilter:="Excel Files (*.xls),*.xls", FilterIndex:=0, Title:="Save As")
    If fname <> "False" Then
    ActiveWorkbook.saveas Filename:=fname
    End If

    End Sub

    How do I save the file as the contents of two cells?

    All help is appreciated.
    try something like;

    InitialFilename:=Range("a1")& Range("B20")

    Ivan

  3. #3
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    yes

  4. #4
    New Member
    Join Date
    Feb 2002
    Location
    Eau Claire, WI
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks!

Some videos you may like

User Tag List

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
  •