vba ¦p¦óקï·s¼W¤½¦¡ ¥i¥H¦Û°Ê¶K¤U¤@±Æ
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
vba ¦p¦óקï·s¼W¤½¦¡ ¥i¥H¦Û°Ê¶K¤U¤@±Æ
·Qn¶Kº¡5Ó«á¡A´«¤U¤@±Æ¦b¶K5Ó....¥H¦¹Ãþ±À
½ÐÀ°À°§Ú!!
¤½¦¡¦p¤U:
Sub InsertPictures()
'Update 20140513
Dim PicList() As Variant
Dim PicFormat As String
Dim Rng As Range
Dim sShape As Shape
On Error Resume Next
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
xColIndex = Application.ActiveCell.Column
If IsArray(PicList) Then
xRowIndex = Application.ActiveCell.Row
For lLoop = LBound(PicList) To UBound(PicList)
Set Rng = Cells(xRowIndex, xColIndex)
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(lLoop), msoFalse, msoCTrue, Rng.Left, Rng.Top, Rng.Width, Rng.Height)
xColIndex = xColIndex + 1
Next
End If
End Sub |
|
|
|
|
|
|
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
¦^´_ Muffledsatyr
LIBRE¥i¥H°õ¦æ¥¨¶°¶Ü?
§Ú¤½¥q¤]¦³¶R·s¹q¸£
¸Ì±¤º«ØLIBREµ²ªG쥻¼g¦nªº¥¨¶°³£¤£ ...
e86137 µoªí©ó 2021-7-16 06:16
«ö¼öÁä¬O¦³¥X²{Ãþ¦ü¥¨¶°ªºµe±¡A¥i¬O¶K¤W«á¤@¼ËµLªk¨Ï¥Î¤~¨Ó¸÷¨D¤j¯«!!
Orz... |
|
|
|
|
|
|
- ©«¤l
- 21
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- OFFICE2007
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2021-7-4
- ³Ì«áµn¿ý
- 2021-8-12
|
¦^´_ 19# Muffledsatyr
LIBRE¥i¥H°õ¦æ¥¨¶°¶Ü?
§Ú¤½¥q¤]¦³¶R·s¹q¸£
¸Ì±¤º«ØLIBREµ²ªG쥻¼g¦nªº¥¨¶°³£¤£¯à¥Î
¥u¦n¦Û¤vÄéOffice 2007 |
|
|
|
|
|
|
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
¦^´_ Muffledsatyr
©T©w±qA1 ¶}©l±Æ¦C¡A½Ð¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub tt()
Dim PicList, PicFormat$, Rng A ...
samwang µoªí©ó 2021-4-15 13:53
³Ìªñ¤½¥q¹q¸£¬°¤F¸`¬Ù¸g¶O§ó´«¦¨LIBRE¡A°õ¦æVBA®É³£µLªk°õ¦æ!!
·Q½Ð°Ý¦³¤°»ò¤è¦¡¯à³q¥Î©O?ÁÂÁÂ.... |
|
|
|
|
|
|
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
¦^´_ 17# samwang
¶â¶â¨SÃö«Y§Ú¨Ì·Ó§Aªº¤½¦¡×§ï¤F!!
¯uªº¤è«K«Ü¦h¡A´X¦Ê±i¹Ï¤£»Ý¤H¤u¤@¤@½Õ¾ã¤F!!«D±`·PÁÂ~ |
|
|
|
|
|
|
- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 15# Muffledsatyr
½Ð¦A´ú¸Õ¬Ý¬Ý¡A¬O¤£¬O±zªº»Ý¨D¡AÁÂÁÂ
¹Ï¤ù¦bExcel°ª«×5.79¤½¤À ¼e«×7.72¤½¤À
¤U¦Cµ{¦¡½X»Ýקï¼ÆȦp¤U, ¥¼¨Ó¥i¦Û¦æקï©Ò»Ý
°ª«×: 5.79 / 0.0353 = 164
¼e«×: 7.72 / 0.0353 = 219
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(i), msoFalse, msoCTrue, Rng.Left, Rng.Top, 219, 164) '¼Æ¦r¥i³]©w·Ó¤ù¼e°ª |
|
|
|
|
|
|
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
¦^´_ 15# Muffledsatyr
§Ú¦³§ï¼ÆÈ!!·Pı¨ºÓ¦n¹³¬O³æ¦ìªº°ÝÃD!!
¨Ò¦p¤½¤À©M¹³¯Àªº°ÝÃD¾ÉP¹Ï¤ù¤j¤pªº®t²§....«D±`·PÁÂ!!! |
|
|
|
|
|
|
- ©«¤l
- 17
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 & Win10
- ³nÅ骩¥»
- Office 2003 & Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2020-2-4
- ³Ì«áµn¿ý
- 2024-4-19
|
¦^´_ 14# samwang
´ú¸Õ¹L«áEXCELÄæ¼e¦³ÅÜ¡A¥i¨Ï¹Ï¤ù¨S¦³ÅÜ...¤£¹LÁÙ¬OÁÂÁ§A ^0^
|
|
|
|
|
|
|
- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 12# Muffledsatyr
½Ð´ú¸Õ¬Ý¬Ý¡A¤£¤Ó¤F¸Ñ¬O¤£¬O§Anªºµ²ªG¡AÁÂÁÂ
Sub tt2()
Dim PicList, PicFormat$, Rng As Range, sShape As Shape, i&, X%, Y%
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
X = 1
If IsArray(PicList) Then
For i = 1 To UBound(PicList)
Y = Y + 1
If Y > 5 Then X = X + 1: Y = 1 '5±i´«¤U¤@¦C
Set Rng = Cells(X, Y)
Cells(X, Y).ColumnWidth = 42 '³]©wexcel¼e«×
Cells(X, Y).RowHeight = 170 '³]©wexcel°ª«×
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(i), msoFalse, msoCTrue, Rng.Left, Rng.Top, 7.72, 5.79) '¼Æ¦r¥i³]©w·Ó¤ù¼e°ª
Next
End If
End Sub |
|
|
|
|
|
|
- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 12# Muffledsatyr
¹Ï¤ù°ª«×5.79¤½¤À ¼e«×7.72¤½¤À¦³¿ìªk¥[¤J¶Ü?
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(i), msoFalse, msoCTrue, Rng.Left, Rng.Top, Rng.Width, Rng.Height)
Rng.Width , Rng Height ¥i¥Hª½±µ§ï¦¨§A»Ýnªº¼ÆȦp¤U¡A¦pªG¤£§ï´N¬O¨Ì·Óexcel¹ê»Ú¤j¤p¶K¤J
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(i), msoFalse, msoCTrue, Rng.Left, Rng.Top, 7.72, 5.79) |
|
|
|
|
|
|