View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JB2010 JB2010 is offline
external usenet poster
 
Posts: 44
Default Close worksheet, dont save

i have a macro in file A that opens file B , copies some data from it, pastes
it to file A, then closes file B.

when it closes file B, i dont want it to save changes.

i can find the command that WILL Save it (ActiveWorkbook.Save), & am
currently using the command to not save it (ActiveWorkbook.Close), however it
always brings up the "Do you want to save changes?" tick box in the middle of
the macro.

how do i get round this? is there a command to say 'close, no changes'?

cheers


jb