Macro to delete part of a macro

A

Arran

Hi,

I have create a macro in a wookbook (DB). this macro opens up another
workbook (NF) and copies data from NF.

NF itself has macro's within it. when I open NF through the macro in DB I
want part of the thisworkbook beforeSave macro in NF to be deleted/replaced
is this possible?

code in NF is:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.EnableEvents = False
If Range("G5") = "" Or Range("D7") = "" Then
Cancel = True
MsgBox "Please complete all Mandatory Fields"
Else
Run â€savemeâ€
End If
Application.EnableEvents = True
End Sub

It is the Run "saveme" code that I need to be deleted

Any idea's?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top