A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Removing VB Code!!!



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2004, 12:56 PM
Adam
external usenet poster
 
Posts: n/a
Default Removing VB Code!!!

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?


--
Adam
-----------
Windows 98 + Office Pro 97
  #2  
Old June 17th, 2004, 01:20 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Removing VB Code!!!

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" wrote in message
...
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?


--
Adam
-----------
Windows 98 + Office Pro 97



  #3  
Old June 17th, 2004, 01:27 PM
Adam
external usenet poster
 
Posts: n/a
Default Removing VB Code!!!

That is what I have been doing!
--
Adam
-----------
Windows 98 + Office Pro 97


"Peo Sjoblom" wrote:

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" wrote in message
...
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?


--
Adam
-----------
Windows 98 + Office Pro 97




  #4  
Old June 17th, 2004, 01:29 PM
Bernie Deitrick
external usenet poster
 
Posts: n/a
Default Removing VB Code!!!

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" wrote in message
...
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?


--
Adam
-----------
Windows 98 + Office Pro 97



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:36 AM.


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