文件自动保存在共享驱动器中

时间:2019-12-23 05:51:37

标签: excel vba sharepoint

我正在尝试创建一个vba宏,该宏将把我当前的宏文件保存在提到的SharePoint路径中,并自动结束我的宏步骤。

但是在SharePoint中,需要基于我的excel第一工作表数据(共三个字段)在其中创建三个表列吗?

期间P08 FY20,比较-XERC公司,比较代码-1233

fnm = "ME_Financials _ " & MEP1 & "_" & PFY
Sheets("Macro").Visible = False

ActiveWorkbook.SaveAs Filename:=fnm & ""
 Dim bFileSaveAs As Boolean
    bFileSaveAs = Application.Dialogs(xlDialogSaveAs).Show
    If Not bFileSaveAs Then MsgBox "User cancelled", vbCritical
Shell ("C:\Program Files\Internet Explorer\iexplore.exe https://DFFDD365.sharepoint.com/sites/GGG_AP_chennai_/Lists/GL%20Month%20End%20Financial/Fiscal%20Year%202020.aspx")

ActiveWorkbook.Close savechanges:=True

0 个答案:

没有答案