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

[µo°Ý] ¡iVBA-Win11¡jVBA¼u¥Xµøµ¡-(Format)½sĶ¿ù»~:§ä¤£¨ì±M®×©Îµ{¦¡®w

[µo°Ý] ¡iVBA-Win11¡jVBA¼u¥Xµøµ¡-(Format)½sĶ¿ù»~:§ä¤£¨ì±M®×©Îµ{¦¡®w

¤p©f§Ú¬O¶W¯Å·s¤â:$

¦³«e½ú¯d¤U§ì¨ú¦U¥x¹q¸£·Ó¤ùªºVBAÀÉ®×(ÀɦW¬O¨Ì·Ó"YYYYMMDDHHMMSS-"¨Ó§ì¨úªº)¡A
¦ýªñ´Á³¡¤À¹q¸£±j¨î¤É¯Å¦¨Win11¡A
³y¦¨«e½úªººëµØÀÉ®×·|µLªk¹B§@¡A
¤p©f§ä¤£¨ì¥i¥H¸Ñ¨M°ÝÃDªº¸ê®Æ¡A
¨Ó«ô°U³o¸Ìªº¤j¯«¬O§_¦³¸Ñ¡A«Ü©êºpµLªk´£¨Ñ¹q¤lÀÉ¡K

¦p¼ÐÃD¡AVBA¼u¥Xµøµ¡-½sĶ¿ù»~:§ä¤£¨ì±M®×©Îµ{¦¡®w

ÂI¶i¥h¬Ý¡AFormat¬O³Q¤Ï¦¨ÂÅ©³¥Õ¦r¡K

À³¸Ó¬O³o¦ê¥N½X¦³ÂI°ÝÃD
Format(FullDate, "YYYYMMDDHHMMSS-") ­×¥¿¬° Format(FullDate, "YYYYMMDDHHMMSS")
¦pªG¦³»Ý­n "-" ²Å¸¹½Ð¾ã¦ê­×¥¿

Img = Format(FullDate, "YYYYMMDDHHMMSS") & "-" &  AOILocation(RowIndex, 1) & "-" & Right(AOIBoard(RowIndex, 1), 1) & ".jpg"

½Ð½T»{§AªºJPG¦ì¸m¬O§_¦³¦~¤ë¤é¤p®É¤À¬í«á¤S¨S¦³¦h "-" ³o²Å¸¹

TOP

¤j·§¬O³o¦ê¥N½X
If AOI_NO <> 0 Then
                FullDate = AOIDateTime(RowIndex, 1)
                Img = Format(FullDate, "YYYYMMDDHHMMSS-") & AOILocation(RowIndex, 1) & "-" & Right(AOIBoard(RowIndex, 1), 1) & ".jpg"
                Url = IP(AOI_NO) & "\" & Format(FullDate, "YYYY") & "\" & Format(FullDate, "MM") & "\" & Format(FullDate, "YYYYMMDD") & "\" & Img

                'MsgBox "URL:" & vbCrlf & Url

                Set RightCell = Cell.Offset(, 1)

                If Dir(Url, vbDirectory) <> vbNullString Then
                    Set Pic = RightCell.Parent.Pictures.Insert(Url)
                    Pic.ShapeRange.PictureFormat.Contrast = 0.63
                    Pic.ShapeRange.PictureFormat.Brightness = 0.63
¶W¯Å·s¤â

TOP

¬O§_¦³¾ãÅ骺µ{¦¡½XÁÙ¬O¨ä¥L¸ê®Æ
Format¥D­n¬O±N¬Y¦r¦êÂà¤Æ¬°¨ä¥L¥Î³~ªºªF¦è¡A¤K¦¨¬O±N§Aªº¦~¤ë¤é­«·s±Æ§Ç
¥D­n°ÝÃD®£©È¤£¦b¸Ó¦æ¡C

TOP

        ÀR«ä¦Û¦b : ¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C
ªð¦^¦Cªí ¤W¤@¥DÃD