Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Remove VBA code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andrew.stevens@fmg.co.nz - 26 Sep 2007 05:33 GMT
Hi

I have designed a template for staff to use when they have entered the
data and close the workbook a copy is saved to a specified folder with
a name that has been pulled from specified cells. The code is as
follows:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True

    name_value = Cells(10, 2) & " " & Cells(11, 2)
       ActiveWorkbook.SaveCopyAs Filename:="C:\Documents and Settings
\fmgads1\My Documents\Training\" & name_value & ".xls"
End Sub

Is there some code that I can add to this so that the saved copy
doesn't have any macros.

Thanks
Andy
Bob Phillips - 26 Sep 2007 08:20 GMT
See http://www.cpearson.com/excel/vbe.htm

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi
>
[quoted text clipped - 16 lines]
> Thanks
> Andy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.