Results 1 to 6 of 6

Thread: saving files....

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Resolved saving files....

    hi ,
    i am using a msexcell file........i am storing values into it.......now i have to save and close it........how can i do it?

    thanks and regards
    vivek.s
    Last edited by vivek.shankar; Dec 13th, 2004 at 07:21 PM.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: saving files....

    have you searched the forum? doesn't it save if you just close it?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: saving files....

    i jus went thru google....did not search forum.......its bit tedious goin thru post by post.........

    regards
    vivek.s

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: saving files....

    I think that the .Save command does it. You could record a macro, and then look at it. Here is some code that I found.


    Code:
    Private Sub Command2_Click() 'Save
    CommonDialog1.Filter = "Excel Files(*.xls)|*.xls|All Files(*.*)|*.*"
    CommonDialog1.ShowSave
    temp = CommonDialog1.FileName
    xls.DisplayAlerts = False 'So Excel will Not ask about overwriting...it will just Do it
    xls.ActiveWorkbook.SaveAs temp
    'or If you want To just save it In the exsistin Workbook use
    'xls.ActiveWorkbook.Save
    'without the save dialog
    End Sub

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: saving files....

    thanks!
    Set oApp = New Excel.Application
    oApp.Workbooks.Save
    oApp.quit
    this works fine

    regards
    vivek.s

  6. #6
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: saving files....

    The forum search can be pretty specific I find.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

Posting Permissions

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



Click Here to Expand Forum to Full Width