|
-
Dec 13th, 2004, 07:02 PM
#1
Thread Starter
Fanatic Member
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.
-
Dec 13th, 2004, 07:03 PM
#2
Re: saving files....
have you searched the forum? doesn't it save if you just close it?
-
Dec 13th, 2004, 07:05 PM
#3
Thread Starter
Fanatic Member
Re: saving files....
i jus went thru google....did not search forum.......its bit tedious goin thru post by post.........
regards
vivek.s
-
Dec 13th, 2004, 07:10 PM
#4
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
-
Dec 13th, 2004, 07:21 PM
#5
Thread Starter
Fanatic Member
Re: saving files....
thanks!
Set oApp = New Excel.Application
oApp.Workbooks.Save
oApp.quit
this works fine
regards
vivek.s
-
Dec 13th, 2004, 07:23 PM
#6
Frenzied Member
Re: saving files....
The forum search can be pretty specific I find.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|