- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 253
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-22
|
¦^´_ 10# linsurvey2005
¸Õ¸Õ¬Ý³o¼Ë¬O¤£¬O§Anªº- Sub Selection_Copy()
- Dim fs$, SRng, SourceWb As Workbook
- fs = Application.GetOpenFilename("Excel ÀÉ®×(*.xls),*.xls")
- Set SourceWb = Workbooks.Open(fs)
- k = Application.InputBox("½Ð¿ï¨ú±ý½Æ»sªº½d³ò", , , , , , , 8)
- If TypeName(k) = "Boolean" Then SourceWb.Close 0: Exit Sub
- Set nwb = Workbooks.Add
- With nwb.Sheets(1)
- .Activate
- r = Application.Max(12, .Cells(.Rows.Count, 1).End(xlUp).Row + 1)
- If IsArray(k) Then
- .Cells(r, 1).Resize(UBound(k, 1), UBound(k, 2)) = k
- Else
- .Cells(r, 1) = k
- End If
- yn = MsgBox("¬O§_Ä~Äò", vbYesNo): GoTo 10
- Do Until yn <> 6 Or TypeName(k) = "Boolean"
- r = Application.Max(12, .Cells(.Rows.Count, 1).End(xlUp).Row + 1)
- If IsArray(k) Then
- .Cells(r, 1).Resize(UBound(k, 1), UBound(k, 2)) = k
- Else
- .Cells(r, 1) = k
- End If
- yn = MsgBox("¬O§_Ä~Äò", vbYesNo)
- 10
- If yn = 6 Then SourceWb.Activate: k = Application.InputBox("½Ð¿ï¨ú±ý½Æ»sªº½d³ò", , , , , , , 8)
- Loop
- nwb.Activate
- DoEvents
- myfilename = Format(Date, "yymmdd") & "-Tilt-PDA.xls"
- Application.SendKeys myfilename, True
- sf = Application.GetSaveAsFilename("E:\")
- If sf <> False Then nwb.SaveAs sf
- SourceWb.Close 0
- End With
- End Sub
½Æ»s¥N½X |
|