Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Security and working with VBComponents

My macro fails at this code:

With WB.VBProject.VBComponents(2).CodeModule
..DeleteLines 1, .CountOfLines
End With

In my macro security, I do not have the "Trust access to visual basic
project" checkbox checked. But even if that is the right thing to do, can
anyone tell me what this line of code is doing? Is it deleting the VB code
from the workbook "WB"?

Thanks,

Keith
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Security and working with VBComponents

Hi Keithlo

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

And also
http://www.j-walk.com/ss/excel/tips/tip96.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Keithlo" wrote in message ...
My macro fails at this code:

With WB.VBProject.VBComponents(2).CodeModule
.DeleteLines 1, .CountOfLines
End With

In my macro security, I do not have the "Trust access to visual basic
project" checkbox checked. But even if that is the right thing to do, can
anyone tell me what this line of code is doing? Is it deleting the VB code
from the workbook "WB"?

Thanks,

Keith



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Security and working with VBComponents

Thank you so much, sir. I will try these.

Keithlo

"Ron de Bruin" wrote:

Hi Keithlo

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

And also
http://www.j-walk.com/ss/excel/tips/tip96.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Keithlo" wrote in message ...
My macro fails at this code:

With WB.VBProject.VBComponents(2).CodeModule
.DeleteLines 1, .CountOfLines
End With

In my macro security, I do not have the "Trust access to visual basic
project" checkbox checked. But even if that is the right thing to do, can
anyone tell me what this line of code is doing? Is it deleting the VB code
from the workbook "WB"?

Thanks,

Keith




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
Working with social security numbers Andre F Excel Discussion (Misc queries) 4 February 24th 10 10:31 PM
VBComponents question Frederick Chow Excel Programming 2 March 20th 06 07:18 PM
Links between VBComponents and Sheets 3 Paul Excel Programming 1 August 5th 04 04:38 PM
Links between VBComponents and Sheets 2 Paul Excel Programming 1 August 5th 04 04:59 AM
Links between VBcomponents and Sheets Bernie Deitrick Excel Programming 1 August 4th 04 07:19 PM


All times are GMT +1. The time now is 12:44 AM.

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"