- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-1-9 15:24 ½s¿è
¦^´_ 5# cmo140497
·s¼W¹Ï¤ù¬O¤£¬O¤@©w±o¦sÀÉ: ¥iÀH§Aªº·N.
Sheet1 4ӹϤù¦WºÙ¬° Picture 1,Picture 2,¹Ï¤ù 1,¹Ï¤ù 2
Sheet2 3ӹϤù¦WºÙ¬° ¹Ï¤ù 3,¹Ï¤ù 2,¹Ï¤ù 1
If Sh.Name Like "¹Ï¤ù*" Then : µLªkŪ¥XSheet1 Picture 1,Picture 2 ªº¹Ï¤ù
קï¥H ¹Ï®×Ãþ«¬= ·Ó¤ù,§@¬°§PÂ_.- Private Sub Workbook_Open()
- Set dic = CreateObject("Scripting.Dictionary")
- Dim Sh As Worksheet
- Dim S As Shape 'Shape: ¥Nªí¹Ï§Î¼h¤¤ªºª«¥ó¡A¦p§Ö¨ú¹Ï®×¡B¤âø¦hÃä§Î¡BOLE ª«¥ó©Î¹Ï¤ù
- For Each Sh In Sheets 'Sheets: ¤u§@ªí ª«¥óªº¶°¦X
- For Each S In Sh.Shapes 'Shapes: Shape ª«¥óªº¶°¦X
- If S.Type = msoPicture Then 'S.Type(¹Ï®×Ãþ«¬): ·Ó¤ù
- S.OnAction = "nn"
- dic(S.Name & "h") = S.Height
- dic(S.Name & "w") = S.Width
- End If
- Next
- Next
- End Sub
- Private Sub Workbook_BeforeClose(Cancel As Boolean)
- '*** ·s¼Wµ{¦¡: ÁÙì ¹Ï¤ùªº¤j¤p ******
- Dim Sh As Worksheet
- Dim S As Shape 'Shape: ¥Nªí¹Ï§Î¼h¤¤ªºª«¥ó¡A¦p§Ö¨ú¹Ï®×¡B¤âø¦hÃä§Î¡BOLE ª«¥ó©Î¹Ï¤ù
- For Each Sh In Sheets 'Sheets: ¤u§@ªí ª«¥óªº¶°¦X
- For Each S In Sh.Shapes 'Shapes: Shape ª«¥óªº¶°¦X
- If S.Type = msoPicture Then S.Height = dic(S.Name & "h"): S.Width = dic(S.Name & "w")
- Next
- Next
- End Sub
½Æ»s¥N½X |
|