Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a custom excel content type and am attempting to create a unique file name
Sub SaveByDate() Dim MyFileName As String MyFileName = "PO_" & Format(Now(), "yyyymmdd-hhnnss") ActiveWorkbook.SaveAs Filename:=MyFileName End Sub HOWEVER when I change the name it wants to save to MY DESKTOP and not the DOCUMENT LIBRARY - how can I grab the path? (DO I REALLY HAVE TO HARD CODE THIS???) Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If SaveAsUI Then SaveByDate End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with file path to sharepoint | Excel Programming | |||
Unable to delete file from Sharepoint Server Library using VBA (Ex | Excel Programming | |||
Exclude Network Path In PivotTable Based on Sharepoint | Excel Discussion (Misc queries) | |||
Issue with Template Wizard and SharePoint Document Library | Excel Discussion (Misc queries) | |||
#VALUE error when referencing spreadsheet on sharepoint library | Excel Worksheet Functions |