¥»©«³Ì«á¥Ñ ´Ñ»y³¾»ï ©ó 2011-7-15 19:34 ½s¿è
- Sub Macro1()
- '
- ' Macro1 Macro
- '
- '
- Workbooks.OpenText Filename:= _
- Range("C4"), Origin:= _
- 950, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
- ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False, Comma:=False, _
- Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3 _
- , 1), Array(4, 1), Array(5, 1), Array(6, 1)), TrailingMinusNumbers:=True
- ActiveWindow.SmallScroll Down:=15
- Range("F32:G40").Select
- Selection.Copy
- Windows("test.xlsb").Activate
- Sheets("sample1 (1)").Select
- Range("B2").Select
- ActiveSheet.Paste
- Windows("Report.TXT").Activate
- ActiveWindow.Close
- Sheets("set print").Select
- Range("B1").Select
- Workbooks.OpenText Filename:= _
- Range("C5"), Origin:= _
- 950, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
- ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False, Comma:=False, _
- Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3 _
- , 1), Array(4, 1), Array(5, 1), Array(6, 1)), TrailingMinusNumbers:=True
- ActiveWindow.SmallScroll Down:=15
- Range("F32:G40").Select
- Selection.Copy
- Windows("test.xlsb").Activate
- Sheets("sample1 (2)").Select
- Range("B2").Select
- ActiveSheet.Paste
- Windows("Report.TXT").Activate
- ActiveWindow.Close
- Sheets("set print").Select
- Range("B1").Select
- Workbooks.OpenText Filename:= _
- Range("C6"), Origin:= _
- 950, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
- ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False, Comma:=False, _
- Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3 _
- , 1), Array(4, 1), Array(5, 1), Array(6, 1)), TrailingMinusNumbers:=True
- ActiveWindow.SmallScroll Down:=15
- Range("F32:G40").Select
- Selection.Copy
- Windows("test.xlsb").Activate
- Sheets("sample1 (3)").Select
- Range("B2").Select
- ActiveSheet.Paste
- Windows("Report.TXT").Activate
- ActiveWindow.Close
- Sheets("set print").Select
- Range("B1").Select
- End Sub
½Æ»s¥N½X ½Ð°Ýn¦p¦óÅý¦¹¬q¥¨¶°¡A¥X²{¿ù»~®É¡A©¿²¤¿ù»~¡AÄ~Äò¸õ¤U¤@¦æ°õ¦æ¡A¤£n¸õ¥X°£¿ùµøµ¡???
·PÁÂ"a8350070" ¤j¤j«ü¾É~~ |