½Ð°Ý³o¬qµ{¦¡½X¥Dnªº¥Î·N?·P®¦
- ©«¤l
- 5
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 7
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-12-5
- ³Ì«áµn¿ý
- 2016-4-27
|
½Ð°Ý³o¬qµ{¦¡½X¥Dnªº¥Î·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?¬°¦ó? |
|
|
|
|
|
|