Consulting

Results 1 to 6 of 6

Thread: Solved: wkb.close

  1. #1
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location

    Solved: wkb.close

    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.
    [VBA]

    wkbsource.Close
    With wkbsource.Close
    .Save = False
    End With
    [/VBA]

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    wkbsource.Close SaveChange:=False
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    xld, it said named argument not found

  4. #4
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    oh ok, it's savechanges:=false
    thanks

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Sorry, if I had plugged it into a macro I would have seen that :-)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    thanks a lot

Posting Permissions

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