Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove VBA code

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Remove VBA code

See http://www.cpearson.com/excel/vbe.htm

--
HTH

Bob

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

wrote in message
oups.com...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove / Add code through VBA Sharad Naik Excel Programming 2 December 29th 04 01:16 PM
Remove reference from code Dr.Schwartz Excel Programming 3 September 24th 04 01:15 PM
VBA Code to remove VBA Cory Thomas[_6_] Excel Programming 3 June 9th 04 04:06 PM
Use VB code to remove code in sheet1 WashoeJeff Excel Programming 4 January 25th 04 12:23 AM
Remove VBA code Michi[_2_] Excel Programming 3 January 21st 04 04:18 PM


All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"