|
-
Mar 7th, 2001, 11:28 AM
#1
Thread Starter
Fanatic Member
I have managed to open excel through VB 6, managed to select cells. Now I need to save it!! When I try to do it, it comes up with the save changes box. Can I automatically set this to yes?
Nick
-
Mar 7th, 2001, 11:42 AM
#2
Lively Member
Application.DisplayAlerts = False
-
Mar 7th, 2001, 11:48 AM
#3
Thread Starter
Fanatic Member
application.saveworkbook come up with an error saying you can't save it under the same name as it was opened!!!!
-
Mar 8th, 2001, 03:41 AM
#4
Thread Starter
Fanatic Member
-
Mar 8th, 2001, 09:06 AM
#5
Addicted Member
Hi nswan !!!
to save a already saved workbook use
Code:
objExcel.workbooks("myworkbook").save
to save a new one
Code:
'avoid any still exist message and filesavas
popups
objexcel.displayalerts = false
'save the workbook
objExcel.workbooks("myworkbook").saveas "c:\temp\hugo.xls"
-cu TheOnly
-
Mar 8th, 2001, 09:20 AM
#6
Thread Starter
Fanatic Member
i'll love you forever. just when i had given up all hope as well!
Thanks
Nick
-
Mar 8th, 2001, 10:16 AM
#7
Addicted Member
OR......
Code:
Application.SaveChanges = True
OR IF YOU WANNA CLOSE IT AFTER SAVING IT THEN
Code:
ActiveWindow.Close savechanges:=True
Atif AKA AK
VB 5.0
VB 6.0 Professional
VBA, Macros, JAVA, C++
-
Mar 8th, 2001, 10:36 AM
#8
Member
hmmm... Me thinks me go home now... I've been working to hard...
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
|