Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Private Macro

When I change "Sub WBMoved" to
"Private Sub WBMoved"
Can it be accessed from other worbooks?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 143
Default Private Macro

yes if you use "run"

Sub test_run()
Run "Book1.xls!SubInOtherWB"
End Sub

no if you use reference.

Sub test_callByName()
SubInOtherWB
End Sub

"Fan924" wrote in message
...
| When I change "Sub WBMoved" to
| "Private Sub WBMoved"
| Can it be accessed from other worbooks?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Private Macro

Thanks
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
Event macro does not run a Private sub Otto Moehrbach[_2_] Excel Programming 10 October 22nd 08 07:39 PM
Improve method of calling a private function in a private module XP Excel Programming 1 April 30th 08 06:41 PM
Calling a public Macro from a Private Macro thewizz Excel Programming 6 November 2nd 07 10:23 PM
re : Possible to run private sub macros by writing another private ddiicc Excel Programming 5 August 26th 05 04:49 AM
Private Sub Running Other Private Sub Inadvertently Ross Culver Excel Programming 2 February 10th 05 07:17 PM


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