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
- 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-12-18
|
¦^´_ 1# Muffledsatyr
«á¾Ç©È»~·|·N«ä¡A½Ð°Ý¥i¥H¤W¶Ç½d¨Ò¶Ü? ³o¼Ë¤ñ¸û®e©ö¤F¸Ñ¡A·PÁ¡C |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 2# samwang
³o¬O§Ú´Á±æ¤¤ªº¹Ï!!
¥ÎVBA¶K§¹¼Ò²Õ«á¡A¦b¤â°Êק諸!!
§Æ±æ¯à5Ó¤@±Æ«á¡Aª½±µ¸õ¤U¤@±Æ
¨Ã¥B¯à¥þ³¡³£½Õ¾ã¹Ï¤ù¤j¤p!!
¶K5Ó½Õ¾ã¤j¤p¬O¦]¬°è¦nEXCEL®i¶}«áªº¹Ï¡A®t¤£¦h5Ó¤è«K¬d¬Ý!!
¥H¤W~½Ð¨D¤j¯«À°¦£!! |
|
|
|
|
|
|
- ©«¤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-12-18
|
¦^´_ 3# Muffledsatyr
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
¥t¥~¡A¦³ÂI¤£¸Ñ´N¬O§A¤£¬Oì¨Ó´N¦³¼gµ{¦¡¤F¶Ü?
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)
If xColIndex > 5 Then xRowIndex = xRowIndex + 1: xColIndex = 1
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
|
¦^´_ 4# samwang
쥻´N¦³¼g¨S¿ù!!¤£¹L¼gªº¤HÂ÷¾¤F¡A¦Ó§Ú³¡·|³oÓ¤Ó½ÆÂø¤FQQ |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
Sub InsertPictures_5()
Dim PicList() As Variant
Dim PicFormat As String
Dim Rng As Range
Dim sShape As Shape, n
On Error Resume Next
'ActiveSheet.Pictures.Delete '§R°£¥þ³¡¹Ï¤ù
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
Set Rng = Application.ActiveCell
If IsArray(PicList) Then
For lLoop = LBound(PicList) To UBound(PicList)
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(lLoop), msoFalse, msoCTrue, Rng.Left, Rng.Top, Rng.Width, Rng.Height)
n = n + 1
If n = 5 Then
n = 0
Set Rng = Rng.Offset(1, -4)
Else
Set Rng = Rng.Offset(0, 1)
End If
Next
End If
End Sub |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
'¶Kº¡5Ó«á¡A´«¤U¤@±Æ¦b¶K5Ó....¥H¦¹Ãþ±À
'ª`·N! °õ¦æµ{¦¡«e¥ý¿ï©w¶K¹Ï°õ¦æ¦ì¸m
Sub InsertPictures_5()
Dim PicList() As Variant
Dim PicFormat As String
Dim Rng As Range
Dim sShape As Shape, n, Pages
On Error Resume Next
'ActiveSheet.Pictures.Delete '§R°£¥þ³¡¹Ï¤ù
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
Set Rng = Application.ActiveCell
Pages = 5 '±±¨îÅܼơG¶Kº¡5Ó«á¡A´«¤U¤@±Æ¦b¶K5Ó
If IsArray(PicList) Then
For lLoop = LBound(PicList) To UBound(PicList)
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(lLoop), msoFalse, msoCTrue, Rng.Left, Rng.Top, Rng.Width, Rng.Height)
n = n + 1
If n = Pages Then 'º¡5®æ«á
n = 0
Set Rng = Rng.Offset(1, 1 - Pages) '¸õ¤U¤@¦C¡A°h¦^ì°_ÂI
Else
Set Rng = Rng.Offset(0, 1)
End If
Next
End If
End Sub |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤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-12-18
|
¦^´_ 5# Muffledsatyr
©T©w±qA1 ¶}©l±Æ¦C¡A½Ð¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub tt()
Dim PicList, PicFormat$, Rng As Range, sShape As Shape, i&, X%, Y%
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
X = 1 '±qA1¶}©l
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) '¶K¤W·Ó¤ùªº¦ì¸m
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(i), msoFalse, msoCTrue, Rng.Left, Rng.Top, Rng.Width, Rng.Height)
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
|
¦^´_ 7# ML089
¤Ó´Î¤F!!¦³¦U¦ì¯«¤H¯uªºÀ°§Ú«Ü¤jªº¦£!!¦³¤W¦Ê±i~¤W¤d¹Ï¤ùn¶K©O!!
¯uªº«D±`·PÁÂ~
¥t¥~·Q½Ð°Ý¦pªG·Q¥[¤J©T©wªø¼e©Î¤ñ¨Ò¸Ó¥[¦b¤½¦¡þÃä? |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 8# samwang
¤Ó´Î¤F!!
©T©wA1§Úè¦n¤]»Ýn XD!!¯u¬O«õ¨ìÄ_¤F!!«D±`·PÁ¯«¤H¥X¤âÀ°¦£....
¥t¥~·Q½Ð°Ý¦pªG·Q¥[¤J©T©wªø¼e©Î¤ñ¨Ò¸Ó¥[¦b¤½¦¡þÃä? |
|
|
|
|
|
|