Removing VB Code!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All,

At work because the email exchange blocks spreadsheets with VB macro's in them I need to remove the below code I have in one spreadsheet:

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

End Sub

I dont know what this does but when I remove it and close VB if I go back into it there it is again!

Any ideas?
 
Select the sheet that has the code,right it's sheet tab and select view
code, select
it and delete it, save the workbook

--
No private emails please, for everyone's
benefit keep the discussion in the newsgroup.


Regards,

Peo Sjoblom


Adam said:
All,

At work because the email exchange blocks spreadsheets with VB macro's in
them I need to remove the below code I have in one spreadsheet:
 
That is what I have been doing!
--
Adam
-----------
Windows 98 + Office Pro 97


Peo Sjoblom said:
Select the sheet that has the code,right it's sheet tab and select view
code, select
it and delete it, save the workbook

--
No private emails please, for everyone's
benefit keep the discussion in the newsgroup.


Regards,

Peo Sjoblom


Adam said:
All,

At work because the email exchange blocks spreadsheets with VB macro's in
them I need to remove the below code I have in one spreadsheet:
 
Adam,

Don't go back there again: when you open a worksheet's codemodule, Excel
wants to be helpful and puts in those lines, expecting that you want to use
the SelectionChange event.

Simply remove the code, close the code window, then save the workbook.

HTH,
Bernie
MS Excel MVP

Adam said:
All,

At work because the email exchange blocks spreadsheets with VB macro's in
them I need to remove the below code I have in one spreadsheet:
 

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

Back
Top