- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 246
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-12
|
¦^´_ 9# xgirlxs
°µÓ²³æ½d¨Ò
§Q¥Î¹Ïªí¶×¥X¹Ï¤ùµM«á¸ü¤J
§A¦Û¤vÀ³¥Î¬Ý¬Ý
- Private Sub ComboBox1_Change()
- Dim a As Range
- Application.ScreenUpdating = False
- With ¤u§@ªí1
- Set a = .Columns("A").Find(ComboBox1, lookat:=xlWhole)
- Label1.Caption = a.Offset(, 1)
- a.Offset(, 2).CopyPicture '½Æ»s¦¨¹Ï¤ù
- With .ChartObjects.Add(1, 1, a.Offset(, 2).Width, a.Offset(, 2).Height) '·s¼W¹Ïªí
- .Chart.Paste '¶K¤W¹Ï¤ù
- .Chart.Export "D:\temp.jpg" '¶×¥X¹Ïªí¡A¼È¦s¹Ï¤ù
- .Delete '§R°£¹Ïªí
- End With
- Image1.Picture = LoadPicture("D:\temp.jpg") 'ªí³æÅã¥Ü¹Ï¤ù
- Kill "D:\temp.jpg" '§R°£¼È¦s¹Ï¤ù
- End With
- Application.ScreenUpdating = True
- End Sub
- Private Sub UserForm_Initialize()
- Dim a As Range
- Set d = CreateObject("Scripting.Dictionary")
- With ¤u§@ªí1
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- d(a.Value) = ""
- Next
- End With
- ComboBox1.List = d.keys
- End Sub
½Æ»s¥N½X
¹Ï¤ù¿ï¨ú.zip (27.63 KB)
|
|