- ©«¤l
- 109
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 114
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7 Win10
- ³nÅ骩¥»
- Office 2019 WPS
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ²`¦`
- µù¥U®É¶¡
- 2013-2-2
- ³Ì«áµn¿ý
- 2024-11-6
|
- #If VBA7 Then
- Private Declare PtrSafe Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
- #Else
- Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
- #End If
- Private Sub CommandButton4_Click()
- Dim abc As Range
- Dim f As Range
- Dim rngCopy As Range
-
- Set f = Range("a1")
- Set abc = Range("o2:o1000").Find(What:="*", LookIn:=xlValues, SearchDirection:=xlPrevious, LookAt:=xlWhole)
-
- Set rngCopy = Range(f, abc.Offset(1, 2))
- rngCopy.CopyPicture Format:=xlBitmap
- With Sheet2.ChartObjects.Add(0, 0, rngCopy.Width, rngCopy.Height).Chart
- DoEvents
- WaitTimes 200
- .Paste
- ' .Export Filename:="r:\temp\ABC.JPG", FilterName:="JPG"
- .Export Filename:="c:\1.JPG", FilterName:="JPG"
- .Parent.Delete
- End With
- End Sub
- Private Sub WaitTimes(ByVal lngTime As Long)
- Do While lngTime > 0
- DoEvents
- Sleep 20
- lngTime = lngTime - 20
- Loop
- End Sub
½Æ»s¥N½X |
|