Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default DeleteModuleContent doesn´t work in some computers...

hi to all!

i have the following code in my WB that deletes the VB content from one of
my sheets.
The problem is that in some computers (Running Vista) the code dosen´t work!
but in my Pc and others works just fine!

nome = Worksheets("Sixt - Tabela 1").CodeName
DeleteModuleContent ActiveWorkbook, nome

What´s happening? what am i doing wrong?? do i have to call an external
reference?

Thanks a Lot!!!

SpeeD
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default DeleteModuleContent doesn´t work in some computers...

I'd check the references on the computers where it doesn't work. I suspect
one is missing.

I believe I use the reference
Microsoft Visual Basic for Applications Extensibility 5.3

when I do something like this and I believe I had to download it. I also
had to trust the VBA project when I do things like this, which I wouldn't
recommend to the casual user.

HTH,
Barb Reinhardt

"SpeeD" wrote:

hi to all!

i have the following code in my WB that deletes the VB content from one of
my sheets.
The problem is that in some computers (Running Vista) the code dosen´t work!
but in my Pc and others works just fine!

nome = Worksheets("Sixt - Tabela 1").CodeName
DeleteModuleContent ActiveWorkbook, nome

What´s happening? what am i doing wrong?? do i have to call an external
reference?

Thanks a Lot!!!

SpeeD

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
Autofit row doesnt always work FJ Excel Discussion (Misc queries) 2 February 28th 09 01:19 AM
Scroll wheel doesn´t work in excel 2007 Jorge Excel Discussion (Misc queries) 0 May 16th 08 08:36 PM
Scroll wheel doesn´t work in excel 2007 Jorge Excel Discussion (Misc queries) 0 May 16th 08 08:36 PM
Program won't work on all computers [email protected] Excel Programming 3 November 8th 06 09:34 PM
Macro doesn´t work anymore Juan Patrone Excel Programming 1 December 16th 04 10:03 PM


All times are GMT +1. The time now is 12:51 PM.

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

About Us

"It's about Microsoft Excel"