Open New File

santeria

Well-known Member
Joined
Oct 7, 2003
Messages
1,844
Related to the Big File Macro...

I am trying to set it up so that the Network file has a XLT on the network, and also that the file has a consistent name, plus a current date in the format Month/Day/year... like FILENAME 02/06/04

The Macro below does a similar sort of thing for a local File, but this needs to be on a Network.
I don't know of any reason why a template cannot be on a network, but, if you do, please advise.


Code:
Dim OrigFile As Object
Set OrigFile = ActiveWorkbook
Workbooks.Add Template:= _
"C:\Documents and Settings\name\Application Data\Microsoft\Templates\CMS.xlt"
ActiveWorkbook.SaveAs Filename:= _
"C:\REPORTS\DAILY SKILL 77\" & Format(Date, "mm_mmmm") & "\" & _
Format(Date, "mmm dd\.\x\l\s"), FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
Application.DisplayAlerts = False
OrigFile.Close
Application.DisplayAlerts = True
End Sub

Ta

(y)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Not to worry, I figured the edit out....

Now I just have to fix the large macro

:unsure:
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top