请教高手excel通过VB代码复制当前工作表,另存为以今天的日期为名字的工作表,代码如下运行出现如图错误
把date当前日期也给当做保存路径了,求解决PrivateSubCommandButton12_Click()Application.ScreenUpdating=Fal...
把date当前日期也给当做保存路径了,求解决Private Sub CommandButton12_Click()Application.ScreenUpdating = FalseSheets(1).CopyActiveWorkbook.SaveAs Filename:="D:\VB工程\" & Date & ".xls", FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=FalseActiveWorkbook.CloseEnd Sub
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询