ªð¦^¦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 : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD