ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   public sub (https://www.excelbanter.com/excel-programming/318730-public-sub.html)

Bob

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

Tom Ogilvy

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




Bob

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





Dick Kusleika[_4_]

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





All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com