B
bramnizzle
Hey everyone,
I have a dilemma. I've created a workbook that others will use.
However, I don't want them to get into the master copy and screw it
up. So, my idea is to create a temp book or addin that when the user
opens it, it will copy the master workbook and then prompt them to
save it to a folder of their choice, then the temp book or addin will
close.
The addin/temp book is located in H:\SAP8 Project\ I want the user to
open this file and the macro copies New Agreement & SAP8 v1.020808.xls
from the testing folder and prompts the user to save somewhere else.
This saves my master copy in the testing folder.
Option Explicit
Sub CopySAP8()
'add in to copy only the SAP8 file
Dim wb As Workbook
Dim sfilename As String
sfilename = "H:\SAP8 Project\testing\New Agreement & SAP8
v1.020808.xls"
Set wb = Workbooks(sfilename)
Application.Dialogs(xlDialogSaveCopyAs).Show
End Sub
I get a subscript out of range error. Any ideas how to accomplish
this?
I have a dilemma. I've created a workbook that others will use.
However, I don't want them to get into the master copy and screw it
up. So, my idea is to create a temp book or addin that when the user
opens it, it will copy the master workbook and then prompt them to
save it to a folder of their choice, then the temp book or addin will
close.
The addin/temp book is located in H:\SAP8 Project\ I want the user to
open this file and the macro copies New Agreement & SAP8 v1.020808.xls
from the testing folder and prompts the user to save somewhere else.
This saves my master copy in the testing folder.
Option Explicit
Sub CopySAP8()
'add in to copy only the SAP8 file
Dim wb As Workbook
Dim sfilename As String
sfilename = "H:\SAP8 Project\testing\New Agreement & SAP8
v1.020808.xls"
Set wb = Workbooks(sfilename)
Application.Dialogs(xlDialogSaveCopyAs).Show
End Sub
I get a subscript out of range error. Any ideas how to accomplish
this?