Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default ThisWorkbook module question

A file with code in the ThisWorkbook module (no other module exists)
is opened. It contains a single sheet.
The contents of the single sheet are copied to a sheet in a new workbook.
The new book is saved, closed and then reopened.

Can the macro warning message be suppressed?

I believe the ThisWorkbook module cannot be deleted?

Could I save the stripped workbook in another format?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default ThisWorkbook module question

Hi
then do you get the macro warning?
for the new workbook or the existing one.
For the existing one (with code in ThisWorkbook) no chance besided
setting the security level to 'Low' (or signing your code)

--
Regards
Frank Kabel
Frankfurt, Germany

"Stuart" schrieb im Newsbeitrag
...
A file with code in the ThisWorkbook module (no other module exists)
is opened. It contains a single sheet.
The contents of the single sheet are copied to a sheet in a new

workbook.
The new book is saved, closed and then reopened.

Can the macro warning message be suppressed?

I believe the ThisWorkbook module cannot be deleted?

Could I save the stripped workbook in another format?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default ThisWorkbook module question

Results with the new workbook are not consistent.
Generally there is no warning when the new book
is opened.

Whether there is a warning or not, the only entry in
the new book's ThisWorkbook module is
"Option Explicit".

Obviously for the 'old' workbook which retains code,
I'm always getting the warning. That is fine/expected.

Why sometimes a warning when the module is empty.

Regards.

"Frank Kabel" wrote in message
...
Hi
then do you get the macro warning?
for the new workbook or the existing one.
For the existing one (with code in ThisWorkbook) no chance besided
setting the security level to 'Low' (or signing your code)

--
Regards
Frank Kabel
Frankfurt, Germany

"Stuart" schrieb im Newsbeitrag
...
A file with code in the ThisWorkbook module (no other module exists)
is opened. It contains a single sheet.
The contents of the single sheet are copied to a sheet in a new

workbook.
The new book is saved, closed and then reopened.

Can the macro warning message be suppressed?

I believe the ThisWorkbook module cannot be deleted?

Could I save the stripped workbook in another format?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default ThisWorkbook module question

Hi
even with only this entry 'Option Explicit' you get this warning. The
module has to be completely empty (and no standard module shall exist).
So deleting 'Option Explicit' will remove the macro warning

--
Regards
Frank Kabel
Frankfurt, Germany

"Stuart" schrieb im Newsbeitrag
...
Results with the new workbook are not consistent.
Generally there is no warning when the new book
is opened.

Whether there is a warning or not, the only entry in
the new book's ThisWorkbook module is
"Option Explicit".

Obviously for the 'old' workbook which retains code,
I'm always getting the warning. That is fine/expected.

Why sometimes a warning when the module is empty.

Regards.

"Frank Kabel" wrote in message
...
Hi
then do you get the macro warning?
for the new workbook or the existing one.
For the existing one (with code in ThisWorkbook) no chance besided
setting the security level to 'Low' (or signing your code)

--
Regards
Frank Kabel
Frankfurt, Germany

"Stuart" schrieb im Newsbeitrag
...
A file with code in the ThisWorkbook module (no other module

exists)
is opened. It contains a single sheet.
The contents of the single sheet are copied to a sheet in a new

workbook.
The new book is saved, closed and then reopened.

Can the macro warning message be suppressed?

I believe the ThisWorkbook module cannot be deleted?

Could I save the stripped workbook in another format?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



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
Compile error in hidden module: ThisWorkbook Graeme Setting up and Configuration of Excel 3 April 4th 08 03:33 AM
Workbook_Open in ThisWorkbook.module Bob Barnes Excel Discussion (Misc queries) 1 February 12th 08 07:52 PM
Compile error in hidden module: ThisWorkbook Lloyd Excel Discussion (Misc queries) 1 May 27th 05 11:39 PM
Compile error in hidden module: ThisWorkbook Peo Sjoblom Excel Discussion (Misc queries) 0 May 27th 05 09:50 PM
Call Private Function from ThisWorkbook module Beto[_3_] Excel Programming 3 February 25th 04 01:36 PM


All times are GMT +1. The time now is 07:01 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"