¬°¤°»ò¦b¦s·Ó¤ùªº®ÉÔ·|¤@ª½Âण°±?
- ©«¤l
- 123
- ¥DÃD
- 37
- ºëµØ
- 0
- ¿n¤À
- 177
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2011-11-9
- ³Ì«áµn¿ý
- 2024-3-28
|
¬°¤°»ò¦b¦s·Ó¤ùªº®ÉÔ·|¤@ª½Âण°±?
¥»©«³Ì«á¥Ñ kkooo15 ©ó 2019-7-12 19:49 ½s¿è
¤GÓ³æ¿W¨Ï¥Î¨S°ÝÃD
¬°¤°»ò¦X¨Ö¤@°_¨Ï¥Î´N·|Âण°±?- Option Explicit
- Sub ¦s·Ó¤ù()
- Dim Rng As Range
- Dim fullName As String
- fullName = ActiveWorkbook.Path & "\photo\" & Sheets("¤H¨Æ¿é¤J").Range("B4") & Sheets("¤H¨Æ¿é¤J").Range("B7") & ".jpg"
- Set Rng = Range("Q1:V6") '«ü©wªº½d³ò
- 'Set Rng = Selection '·Æ¹«¿ï©wªº½d³ò
- Rng.CopyPicture
- With ActiveSheet.ChartObjects.Add(1, 1, Rng.Width, Rng.Height) '·s¼W ¹Ïªí
- .Chart.Paste '¶K¤W ¹Ï¤ù
- .Chart.Export fullName '¶×¥X ¹Ï¤ù
- .Delete '§R°£ ¹Ïªí
- End With
- End Sub
- Sub ·Ó¤ù¦sÀÉ()
- 'ActiveWorkbook.Path & "\photo\" & Sheets("¤H¨Æ¿é¤J").Range("B4") & Sheets("¤H¨Æ¿é¤J").Range("B7") & ".jpg"
- 'ÀˬdÀɦW¬O§_¿é¤J¦³»~
- If Sheets("¤H¨Æ¿é¤J").Range("B7") = "" Or Sheets("¤H¨Æ¿é¤J").Range("B4") = "" Then
- MsgBox ("¸ê®Æ¿é¤J¤£¥þ¡C")
- Exit Sub
- End If
- 'ÀˬdÀɮ׬O§_¦s¦b
- Dim fs As Object
- Set fs = CreateObject("Scripting.FileSystemObject")
- If fs.FileExists(ActiveWorkbook.Path & "\photo\" & Sheets("¤H¨Æ¿é¤J").Range("B4") & Sheets("¤H¨Æ¿é¤J").Range("B7") & ".jpg") Then
- MsgBox (Sheets("¤H¨Æ¿é¤J").Range("B4") & Sheets("¤H¨Æ¿é¤J").Range("B7") & ".jpg·Ó¤ù¤w¦s¦b¡A½Ð¤Å«½Æ¦s·Ó¤ù¡C")
- 'Àɮצs¦b
- Else
- 'Àɮפ£¦s¦b
- Call ¦s·Ó¤ù
- MsgBox ("·Ó¤ù¤w¦sÀÉ¡C")
- End If
- End Sub
½Æ»s¥N½X |
|
excel¾Ç²ß¤¤!¿v¥X¹Ú·Q
https://www.youtube.com/channel/UCPAiRNsHX3k_omp0YDgfDiA
|
|
|
|
|
- ©«¤l
- 123
- ¥DÃD
- 37
- ºëµØ
- 0
- ¿n¤À
- 177
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2011-11-9
- ³Ì«áµn¿ý
- 2024-3-28
|
|
excel¾Ç²ß¤¤!¿v¥X¹Ú·Q
https://www.youtube.com/channel/UCPAiRNsHX3k_omp0YDgfDiA
|
|
|
|
|