ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý³o¬qµ{¦¡½X¥D­nªº¥Î·N?·P®¦

½Ð°Ý³o¬qµ{¦¡½X¥D­nªº¥Î·N?·P®¦

½d¨Ò¤@Dim INP As String
    INP = ActiveSheet.Name
With Worksheets(INP)
        For Each qyt In .QueryTables
            qyt.Delete
        Next
    End With


½d¨Ò¤GPrivate Sub Workbook_BeforeClose(Cancel As Boolean)
    Dim qyt As QueryTable
        For Each qyt In Worksheets("xxx").QueryTables
            qyt.Delete
        Next
        Set qyt = Nothing
End Sub
°ÝÃD1.  ½Ð°Ý¤W­±¨â¬q¬O¬°¤F²M°£³s½u¶Ü?
°ÝÃD2.  ²Ä¤G¬q¦³¥[ Set qyt = Nothing, ¥Î·N¬°¦ó? ¤S¥Nªí¤°»ò?
°ÝÃD3.  ±`Å¥¤Í¤H»¡°j°é§ìºô­¶¸ê®Æ·|¶VÅÜÅܺC?¬°¦ó?

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD