PDA

View Full Version : Solved: wkb.close



chungtinhlak
02-19-2009, 10:57 AM
what's wrong with this, I open a workbook copy some stuff from it to a different workbook. I want to close it without saving it.


wkbsource.Close
With wkbsource.Close
.Save = False
End With

xld
02-19-2009, 11:02 AM
wkbsource.Close SaveChange:=False

chungtinhlak
02-19-2009, 11:14 AM
xld, it said named argument not found

chungtinhlak
02-19-2009, 11:16 AM
oh ok, it's savechanges:=false
thanks

xld
02-19-2009, 11:17 AM
Sorry, if I had plugged it into a macro I would have seen that :-)

chungtinhlak
02-19-2009, 11:50 AM
thanks a lot