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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

santeria

Well-known Member
Joined
Oct 7, 2003
Messages
1,844
Not to worry, I figured the edit out....

Now I just have to fix the large macro

:unsure:
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,882
Messages
5,766,896
Members
425,383
Latest member
IllDo

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
Top