LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Possible to assign macro defined as private to a form control.

Hi again.

Let me first say that i appreciate everyone who has been kind enough to
respond to my inquiries/questions due to my "ignorance" of VBA/excel.

Another question is this: I have created a form control on a worksheet and
also defined the macro(public sub subName) in the same worksheet module and
subsequently assigned that public macro to the control. However, i don't
want users to be able to select this macro within Excel (via
Tools-Macro-Macros).

If i declare the macro as private (private sub subnam) that prevents user's
from choosing the macro. BUT that also prevents me from assigning the macro
to the form control as well since i used Right-Click on Form Control-Assign
Macro method!

So how can i assign a macro to a control without also letting the user gain
access to the macro via Tools-Macro-Macros?
 
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
Control Toolbox and Private Sub Worksheet_Change(ByVal Target As R [email protected] Excel Discussion (Misc queries) 1 August 17th 07 09:38 AM
Control Toolbox and Private Sub Worksheet_Change(ByVal Target As R Toppers Excel Discussion (Misc queries) 0 August 17th 07 02:02 AM
Control Toolbox and Private Sub Worksheet_Change(ByVal Target Toppers Excel Discussion (Misc queries) 0 August 17th 07 01:52 AM
assign a macro to a control button ewan72 Excel Discussion (Misc queries) 1 December 3rd 04 02:04 PM
help: master control macro and user form jasonsweeney[_20_] Excel Programming 1 January 26th 04 11:10 AM


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