#1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default public sub

how can I use a macro that starts with public sub.
This will not be recognized by my macro list and run remains greyed out when
I type the macro name
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default public sub

Make sure you put it in a general module and not in a sheet or the
thisworkbook module.

--
Regards,
Tom Ogilvy

"Bob" wrote in message
...
how can I use a macro that starts with public sub.
This will not be recognized by my macro list and run remains greyed out

when
I type the macro name



  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default public sub

Does this follow for xp? The module in listed as general.

"Tom Ogilvy" wrote:

Make sure you put it in a general module and not in a sheet or the
thisworkbook module.

--
Regards,
Tom Ogilvy

"Bob" wrote in message
...
how can I use a macro that starts with public sub.
This will not be recognized by my macro list and run remains greyed out

when
I type the macro name




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default public sub

Bob

Yes. If the sub takes arguments, you'll get this behavior.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Bob wrote:
Does this follow for xp? The module in listed as general.

"Tom Ogilvy" wrote:

Make sure you put it in a general module and not in a sheet or the
thisworkbook module.

--
Regards,
Tom Ogilvy

"Bob" wrote in message
...
how can I use a macro that starts with public sub.
This will not be recognized by my macro list and run remains greyed
out when I type the macro name



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
protect public sub johnny Excel Discussion (Misc queries) 2 April 23rd 08 07:04 PM
Using A Public Function / carl Excel Worksheet Functions 1 April 6th 06 09:13 PM
Public variable Jack New Users to Excel 4 March 18th 06 09:35 PM
Public Function Monty Excel Discussion (Misc queries) 9 December 24th 04 06:35 PM
Public Sub Help No Name Excel Programming 2 May 18th 04 11:09 PM


All times are GMT +1. The time now is 11:47 PM.

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"