- توردا
- 4140 سائەت
- ئاخىرقى قېتىم
- 2012-7-30
- تىزىملاتقان
- 2010-7-21
- شۆھرەت
- 28183
- تىللا
- 20356
- MSN
- intil.biz@hotmail.com
- تۆھپە
- 16050
- ھوقۇقى
- 200
- جۇغلانما
- 100052
- ئالبوم
- 2
- بلوگ
- 82
- خاتىرە
- 13
- يازما
- 7260
- تېما
- 1161
- نادىر
- 4
- ھەمبەھر
- 31
- UID
- 10
       
- تۆھپە
- 16050
- تىللا
- 20356
- شۆھرەت
- 28183
|
سىناپ بېقىڭ- Sub addpicture()
- Dim FirstRow, LastRow As Integer, FileType As String
- FirstRow = Sheet1.UsedRange.Row
- LastRow = FirstRow + Sheet1.UsedRange.Rows.Count - 1
- FileType = InputBox("输入你的图片的后缀名", "输入图片格式", "jpg")
- For i = FirstRow To LastRow
- Numb = Cells(i, 2).Value
- With ActiveSheet
- .Pictures.Insert("D:\tmp\" & Numb & "." & FileType).Select
- Set Target = .Cells(i, 1)
- End With
- With Selection
- .Top = Target.Top + 1
- .Left = Target.Left + 1
- .Width = Target.Width - 1
- .Height = Target.Height - 1
- End With
- Next i
- End Sub
مەزمۇننى كۆچۈرۈۋېلىش بۇمۇ بىر خىل كود- Set objWord = CreateObject("Word.Application")
- objWord.Visible = True
- Set objDoc = objWord.Documents.Add()
- Set objSelection = objWord.Selection
- objSelection.TypeText "Here is a sentence preceding the picture."
- Set objShape = objSelection.InlineShapes.AddPicture("C:\Temp\3.gif")
- With objWord.ActiveDocument.InlineShapes(1)
- .Height = 250
- .Width = 250
- End With
مەزمۇننى كۆچۈرۈۋېلىش پايدىلىنىڭ تەپسىلىي: EXCEL+VBA دا رەسىم كەڭلىكىنى تەڭشەش
|
|