¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
Ãö©ó excel ¹Ï¤ù¬ÛÃö°ÝÃD
èè¬Ý¤F http://forum.twbts.com/viewthread.php?tid=2637 ªO¤jªºµ{¦¡½X
ÁÙ¬O«Ü¦h¤£À´...
¥H¤U´£¥XºÃ°ÝÂI ·Ð½Ð°ª¤â «ü¾É .
1.¦pªG·Qn ÂI¤å¦rªº¶W³sµ² ·|¥X²{¤@ÓÃB¥~¬ÛÃö¹Ï¤ù(¦bªí³æ¤º ¦p¤U¦Cµ{¦¡½X³Ì¤U¤è) ¸Ó¦p¦ó½s¼g
2.¦pªG·Qn¥Î±±¨î¶s (optionbutton) ¥h°µ¬D¿ï¨Ã¥BÅã¥Ü©óimage¤è¶ô¤º(¹Ï¤ù¤j¤p²Å¦X¸Ó¤è¶ô) ¤S¸Ó¦p¦ó½s¼g
3.°²¨Ï¸Ó¹ÏÀɮ榡¬°³sÄò (¦p 001 002 003) n¦p¦ó±N¨ä¦Û°Ê½s¤JÅã¥Ü
¤£¦n·N«ä ¤p§Ì·s¤â豵IJ«Ü¦h¤£À´ ½Ð¦h¥]²[
¥H¤U¬°¤p§Ìªº µ{¦¡½X
Sub Macro1()
'
' Macro1 Macro
'
' §Ö³tÁä: Ctrl+b
'
Range("a1").Select
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:= _
"c:=\aaa\001-01.JPG" _
, TextToDisplay:="001-01.jpg"
Range("b1").Select
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:= _
"c:=\aaa\001-02.JPG" _
, TextToDisplay:="001-02.jpg"
Range("c1").Select
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:= _
"c:=\aaa\001-03.JPG" _
, TextToDisplay:="001-03.jpg"
Range("D1").Select
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:= _
"c:=\aaa\001-04.JPG" _
, TextToDisplay:="001-04.jpg"
With Worksheets("Sheet1").Range("B2:C4")
.Value = "001-0"
Val (a)
End With
Dim R As Range
Set R = ActiveSheet.Range("a10")
Call ActiveSheet.Shapes.AddPicture("c:=\aaa\001-01.JPG", msoFalse, msoTrue, R.Left, R.Top, 200, 200)
Dim u As Range
Set u = Worksheets("sheet1").Range("c10")
Call ActiveSheet.Shapes.AddPicture("c:=\aaa\001-01.JPG", msoFalse, msoTrue, u.Left, u.Top, 200, 200)
End If |
|