主题:求助,vba代码 翻译成 vfp 的几个问题
这是vba代码:
Attribute VB_Name = "模块1"
Sub Macro5()
Sheets("sb1").Select
Cells.Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False Range("C2").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(""s"",MID(RC[-1],4,6),"".xls"")"
wjm = ActiveCell.FormulaR1C1
lj = "d:\LqzTyGlxt\sqbtool\excel\ywj\" & ActiveCell.Value
ActiveWorkbook.SaveAs Filename:="d:\LqzTyGlxt\sqbtool\excel\ywj\" & ActiveCell.Value, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
Range("C2").Select
Selection.ClearContents
ActiveWorkbook.Save
End Sub
Attribute VB_Name = "模块1"
Sub Macro5()
Sheets("sb1").Select
Cells.Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False Range("C2").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(""s"",MID(RC[-1],4,6),"".xls"")"
wjm = ActiveCell.FormulaR1C1
lj = "d:\LqzTyGlxt\sqbtool\excel\ywj\" & ActiveCell.Value
ActiveWorkbook.SaveAs Filename:="d:\LqzTyGlxt\sqbtool\excel\ywj\" & ActiveCell.Value, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
Range("C2").Select
Selection.ClearContents
ActiveWorkbook.Save
End Sub