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

[µo°Ý] µLªk¦Û°ÊÀx¦s

[µo°Ý] µLªk¦Û°ÊÀx¦s

¦U¦ì¤j¤j
§Ú¦bfull_calcªºÀÉ®×¼g¶}±Ò "LF¨C¤é¼Ò¨ã²§°Ê.xlsm"¡A¶}±Ò«áÃö³¬ÀÉ®×
Sub full_calc()

'¶}±ÒLF¨C¤é¼Ò¨ã²§°Ê
L = "\\shl-group.com\dept\MFMG\B.¦U²Õ¸ê®Æ (Team inform)\E.¥ÍºÞ²Õ (PPC group)\X.¦Û°Ê¤Æ¤u¨ã(¤Å§R)\¼Ò¨ã²§°Ê-¤»ºÖ(«æ¥ó1.9±M¥Î)\"
Workbooks.Open (L & "LF¨C¤é¼Ò¨ã²§°Ê.xlsm")

'Ãö³¬LF¨C¤é¼Ò¨ã²§°Ê
Workbooks("LF¨C¤é¼Ò¨ã²§°Ê.xlsm").Close

End Sub

¦bLF¨C¤é¼Ò¨ã²§°ÊªºThis workboook->Workbook_BeforeClos©³¤U¼gÀx¦sªº»yªk
ÀÉ®×Ãö±¼¤§«áµo²{¨Ã¨S¦³Àx¦s
¦ý¬O¦pªG¬O³æ¿W¶}±Ò"LF¨C¤é¼Ò¨ã²§°Ê.xlsm"ÀɮצAÃö±¼«o¦³Àx¦s

§Ú¥H¬°¬O¦]¬°ÀÉ®×Ãö¤Ó§Ö¾É­P¨Ó¤£¤ÎÀx¦s
©Ò¥H¦A¼g¤@¬q©µ¿ð¤­¬íÃö³¬
µ²ªGÁÙ¬O¨S¦³Àx¦s
Private Sub Workbook_BeforeClose(Cancel As Boolean)
   
    ActiveWorkbook.Save
   
    Application.Wait Now + TimeValue("0:00:05")
End Sub


½Ð°Ý½×¾Âªº¤j¤j­Ì
¬O§_¦³¤èªk¥i¥H¸Ñ¨M³o­Ó¿ìªk??

¦^´_ 1# cowww
»yªkµ¹ªº¦³»~
Sub full_calc()

Application.DisplayAlerts = False

'¶}±ÒLF¨C¤é¼Ò¨ã²§°Ê
L = "\\shl-group.com\dept\MFMG\B.¦U²Õ¸ê®Æ (Team inform)\E.¥ÍºÞ²Õ (PPC group)\X.¦Û°Ê¤Æ¤u¨ã(¤Å§R)\¼Ò¨ã²§°Ê-¤»ºÖ(«æ¥ó1.9±M¥Î)\"
Workbooks.Open (L & "LF¨C¤é¼Ò¨ã²§°Ê.xlsm")

'Ãö³¬LF¨C¤é¼Ò¨ã²§°Ê
Workbooks("LF¨C¤é¼Ò¨ã²§°Ê.xlsm").Close

Application.DisplayAlerts = True

End Sub

TOP

¦^´_ 2# cowww

§Ú´ú¸Õ¥X¨Ó¤F
¦bclose¤§«e¦b¥[¥ysave
Sub open_Click()

Application.DisplayAlerts = False

'¶}±ÒLF¨C¤é¼Ò¨ã²§°Ê
L = "\\shl-group.com\dept\MFMG\B.¦U²Õ¸ê®Æ (Team inform)\E.¥ÍºÞ²Õ (PPC group)\X.¦Û°Ê¤Æ¤u¨ã(¤Å§R)\¼Ò¨ã²§°Ê-¤»ºÖ(«æ¥ó1.9±M¥Î)\"
Workbooks.Open (L & "LF¨C¤é¼Ò¨ã²§°Ê.xlsm")
'Àx¦sLF¨C¤é¼Ò¨ã²§°Ê
Workbooks("LF¨C¤é¼Ò¨ã²§°Ê.xlsm").Save
'Ãö³¬LF¨C¤é¼Ò¨ã²§°Ê
Workbooks("LF¨C¤é¼Ò¨ã²§°Ê.xlsm").Close

Application.DisplayAlerts = True

End Sub

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD