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

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³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

§ï¤F¡A¦ý¬Ow11¶]¥¨¶°«áÁÙ¬O¸õ¥X¤@¼Ëªºµøµ¡»P±¡ªp¡A
µøµ¡Åã¥Ü ½sĶ¿ù»~:§ä¤£¨ì±M®×©Îµ{¦¡®w ¡K.
¬O¦]¬°windows ª©¥»ªºÃö«Y¶Ü¡H

¤W¯Z¤~¦³¿ìªk¬Ý¨ìµ{¦¡¡A©Ò¥H·|·|¤ñ¸ûºC
¶W¯Å·s¤â

TOP

¥»©«³Ì«á¥Ñ jackyq ©ó 2024-12-21 18:19 ½s¿è

https://topic.alibabacloud.com/tc/a/excel-vba-prompts-no-project-or-database-found-error-solution_8_8_31994777.html
©Î

­«·s¦w¸Ë EXCEL ¤ñ¸û¦³¾÷·|¯à­×´_
§ä¤£¨ì±M®×©Îµ{¦¡®w ³q±`³£µo¥Í¦b dll ª©¥»¿ù»~ dll ¿ò¥¢ ¤§Ãþªº
¥i¯à¬O¦b¤É¯Å Win11 «á  ¤Þµo ActiveX dll µù¥Uªí«H®§¿ù»~

TOP

­«¸Ë¶Ü?
§Ú¦A¸Õ¸Õ!ÁÂÁÂ~
¶W¯Å·s¤â

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD