ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

vba ¦p¦ó­×§ï·s¼W¤½¦¡ ¥i¥H¦Û°Ê¶K¤U¤@±Æ

vba ¦p¦ó­×§ï·s¼W¤½¦¡ ¥i¥H¦Û°Ê¶K¤U¤@±Æ

·Q­n¶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

¦^´_  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...

TOP

¦^´_ 19# Muffledsatyr

LIBRE¥i¥H°õ¦æ¥¨¶°¶Ü?
§Ú¤½¥q¤]¦³¶R·s¹q¸£
¸Ì­±¤º«ØLIBREµ²ªG­ì¥»¼g¦nªº¥¨¶°³£¤£¯à¥Î
¥u¦n¦Û¤vÄéOffice 2007

TOP

¦^´_  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?ÁÂÁÂ....

TOP

¦^´_ 17# samwang


¶â¶â¨SÃö«Y§Ú¨Ì·Ó§Aªº¤½¦¡­×§ï¤F!!
¯uªº¤è«K«Ü¦h¡A´X¦Ê±i¹Ï¤£»Ý¤H¤u¤@¤@½Õ¾ã¤F!!«D±`·PÁÂ~

TOP

¦^´_ 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°ª

TOP

¦^´_ 15# Muffledsatyr


    §Ú¦³§ï¼Æ­È!!·Pı¨º­Ó¦n¹³¬O³æ¦ìªº°ÝÃD!!
¨Ò¦p¤½¤À©M¹³¯Àªº°ÝÃD¾É­P¹Ï¤ù¤j¤pªº®t²§....«D±`·PÁÂ!!!

TOP

¦^´_ 14# samwang


   

´ú¸Õ¹L«áEXCELÄæ¼e¦³ÅÜ¡A¥i¨Ï¹Ï¤ù¨S¦³ÅÜ...¤£¹LÁÙ¬OÁÂÁ§A ^0^

TOP

¦^´_ 12# Muffledsatyr

½Ð´ú¸Õ¬Ý¬Ý¡A¤£¤Ó¤F¸Ñ¬O¤£¬O§A­nªºµ²ª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

TOP

¦^´_ 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)

TOP

        ÀR«ä¦Û¦b : ¤£­nÀH¤ß©Ò±ý¡A­nÀH¤ß±Ð¨|¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD