Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default protect module and work in activeworkbook

Hi all and Tom :)

I have two questions..

1) How protect only one module in project?

2) I'd like do some action after cases below:
-open application (excel),
-add new workbook,
-open some file in level's Excel,
etc connected with work in active workbook (worksheets)
I do code contain Auto_Open but code haven't solutions of
remains cases.
I'd like, solve above cases includes in "personal.xls"

Best regards
Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default protect module and work in activeworkbook

You can't protect a single module- protection is applied at the
project/workbook level.

I don't understand your 2nd question.

--
Regards,
Tom Ogilvy

Mark wrote in message
...
Hi all and Tom :)

I have two questions..

1) How protect only one module in project?

2) I'd like do some action after cases below:
-open application (excel),
-add new workbook,
-open some file in level's Excel,
etc connected with work in active workbook (worksheets)
I do code contain Auto_Open but code haven't solutions of
remains cases.
I'd like, solve above cases includes in "personal.xls"

Best regards
Mark




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default protect module and work in activeworkbook

Hi Tom,
Problem is following:
Is it been possible was to write in VBA programme (in
personal.xls), which for every opened or created workbook
add text to headline of printout?
Question concerns MsExcel, but I wonder, it is possible to
do for MS Word and another application MSOffice.
Thanks for any help
Regards
Mark
-----Original Message-----
You can't protect a single module- protection is applied

at the
project/workbook level.

I don't understand your 2nd question.

--
Regards,
Tom Ogilvy

Mark wrote in message
...
Hi all and Tom :)

I have two questions..

1) How protect only one module in project?

2) I'd like do some action after cases below:
-open application (excel),
-add new workbook,
-open some file in level's Excel,
etc connected with work in active workbook (worksheets)
I do code contain Auto_Open but code haven't solutions

of
remains cases.
I'd like, solve above cases includes in "personal.xls"

Best regards
Mark




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default protect module and work in activeworkbook

In Excel, you could put it in the BeforePrint event using application level
events.

See Chip Pearson's page on Application.Level Events:

http://www.cpearson.com/excel/AppEvent.htm

You could instantiate them in your personal.xls

--
Regards,
Tom Ogilvy

Mark wrote in message
...
Hi Tom,
Problem is following:
Is it been possible was to write in VBA programme (in
personal.xls), which for every opened or created workbook
add text to headline of printout?
Question concerns MsExcel, but I wonder, it is possible to
do for MS Word and another application MSOffice.
Thanks for any help
Regards
Mark
-----Original Message-----
You can't protect a single module- protection is applied

at the
project/workbook level.

I don't understand your 2nd question.

--
Regards,
Tom Ogilvy

Mark wrote in message
...
Hi all and Tom :)

I have two questions..

1) How protect only one module in project?

2) I'd like do some action after cases below:
-open application (excel),
-add new workbook,
-open some file in level's Excel,
etc connected with work in active workbook (worksheets)
I do code contain Auto_Open but code haven't solutions

of
remains cases.
I'd like, solve above cases includes in "personal.xls"

Best regards
Mark




.



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
How does a module of VB work in a Worksheet? VJ Sharma[_2_] Excel Worksheet Functions 1 April 30th 09 04:15 PM
Why doesn't While ActiveWorkBook < Null work? [email protected] Excel Discussion (Misc queries) 3 May 27th 07 12:05 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
ActiveWorkbook.Protect password:=range("rangename") does not work WimR Excel Discussion (Misc queries) 1 June 26th 05 08:47 AM
Protect work sheet Lee New Users to Excel 4 April 24th 05 02:27 AM


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