¦U¦ì¤j¤j¦n¡G
½Ð±Ð¤@¤U¡A¤U±¥N½X©óexcel 2013°õ¦æ«á¥i±N¿ï¨úªº½d³ò½Æ»s¦¨jpgÀɦs¦b®à±¡A
¦ýªñ¤é´«¹q¸£¡A¦bexcel 2021°õ¦æ«á½Æ»s¨ì®à±ªºjpgÀÉ«o¬OªÅ¥Õªº¡A
½Ð°Ýnקïþ¸Ìªº¥N½X¤~·|¥¿±`©O¡H
Sub copyrange()
Dim MyDate
MyDate = Format(Now, "yyyy-mm-dd") & "_" & Format(Now, "hhnnss")
Sheets(1).Select '²¾°Ê¨ìSheet1
Selection.Copy '½Æ»s¿ï¨ú½d³ò
Selection.CopyPicture '¿ï¨ú½Æ»s¦¨¹Ï¤ù
With ActiveSheet.ChartObjects.Add(0, 0, Selection.Width, Selection.Height).Chart '³q¹L¦b·í«e¤u§@ªí²K¥[¬Û¦P¤j¤pªº¹Ïªíªº¤è¦¡Âà¦s¦¨¹Ï¤ù
.Paste 'Ö߶K½Æ»s«áªº¹Ï¤ù
.Export "C:\Users\PC\Desktop\" & MyDate & ".JPG" '¾É¥X¨ì®à±¥Ø¿ý¤U,¥H¤é´Á_®É¶¡©R¦W¹Ï¤ùÀɦW
.Parent.Delete '§R°£¸Ó¹Ï¤ù
End With
End Sub
ÁÂÁÂ~~ |