It looks like you're copying a single sheet from a workbook and saving that to a
new workbook.
If that's the case, drop the .savecopyas and use .saveas.
Look at VBA's help for its syntax.
Rick_Stanich wrote:
I am creating a work sheet to be "Saved as" another name, my problem is
I wish to protect it at the time of the "save as".
<snipet
Worksheets("sheet1").Select
Sheets("Sheet1").Copy
ActiveWorkbook.SaveCopyAs vFname 'vFname is new file name as Variant
Any help is appreciated!
--
Rick_Stanich
I am me
------------------------------------------------------------------------
Rick_Stanich's Profile: http://www.excelforum.com/member.php...o&userid=28957
View this thread: http://www.excelforum.com/showthread...hreadid=527358
--
Dave Peterson