Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Widening Names Dropdown (Bob)

Thanks once again Bob.

I particularly like the Names dropdown widening procedure as this has been a
pain in a number of workbooks for a while.

However, I tried adding it as a Workbook Open event to my Personal.XLS file
and it seems to get upset with the Public Declare parts at the top. Error:

"...Declare statements not allowed as Public members of object modules"

Does this mean I have to stick this in a class module first (or at least the
Declare elements)?

Regards

John

"Bob Phillips" wrote in message
...
You can also select the range, and type the name directly into the names
box, to the left of the formula bar.

You might want to learn a bit more at
http://www.xldynamic.com/source/xld.Names.html

--

HTH

RP



  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Widening Names Dropdown (Bob)

John,

Just stick it back into whatever kind of module it was originally in, and
call it from the workbook_open event
ben

"John" wrote:

Thanks once again Bob.

I particularly like the Names dropdown widening procedure as this has been a
pain in a number of workbooks for a while.

However, I tried adding it as a Workbook Open event to my Personal.XLS file
and it seems to get upset with the Public Declare parts at the top. Error:

"...Declare statements not allowed as Public members of object modules"

Does this mean I have to stick this in a class module first (or at least the
Declare elements)?

Regards

John

"Bob Phillips" wrote in message
...
You can also select the range, and type the name directly into the names
box, to the left of the formula bar.

You might want to learn a bit more at
http://www.xldynamic.com/source/xld.Names.html

--

HTH

RP




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Widening Names Dropdown (Bob)

It means you have to put it in a general module - rather than a sheet or
this workbook module.

Try just changing the declarations to Private in your current location.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
Thanks once again Bob.

I particularly like the Names dropdown widening procedure as this has been

a
pain in a number of workbooks for a while.

However, I tried adding it as a Workbook Open event to my Personal.XLS

file
and it seems to get upset with the Public Declare parts at the top.

Error:

"...Declare statements not allowed as Public members of object modules"

Does this mean I have to stick this in a class module first (or at least

the
Declare elements)?

Regards

John

"Bob Phillips" wrote in message
...
You can also select the range, and type the name directly into the names
box, to the left of the formula bar.

You might want to learn a bit more at
http://www.xldynamic.com/source/xld.Names.html

--

HTH

RP





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Widening Names Dropdown (Bob)

Hi John,

Glad you liked it.

To answer the question, no, all you need to do is to either add the API
declarations to a standard code module, or declare them Private.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John" wrote in message
...
Thanks once again Bob.

I particularly like the Names dropdown widening procedure as this has been

a
pain in a number of workbooks for a while.

However, I tried adding it as a Workbook Open event to my Personal.XLS

file
and it seems to get upset with the Public Declare parts at the top.

Error:

"...Declare statements not allowed as Public members of object modules"

Does this mean I have to stick this in a class module first (or at least

the
Declare elements)?

Regards

John

"Bob Phillips" wrote in message
...
You can also select the range, and type the name directly into the names
box, to the left of the formula bar.

You might want to learn a bit more at
http://www.xldynamic.com/source/xld.Names.html

--

HTH

RP





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Widening Names Dropdown (Bob)

Excellent. Thanks very much Ben, Tom and especially Bob!

Well, I've made the change and it works perfectly, but why can't a Declare
statement be made Public? I understand that it may not be good practise but
is there any other reason?

Thanks again

John

"Bob Phillips" wrote in message
...
Hi John,

Glad you liked it.

To answer the question, no, all you need to do is to either add the API
declarations to a standard code module, or declare them Private.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John" wrote in message
...
Thanks once again Bob.

I particularly like the Names dropdown widening procedure as this has
been

a
pain in a number of workbooks for a while.

However, I tried adding it as a Workbook Open event to my Personal.XLS

file
and it seems to get upset with the Public Declare parts at the top.

Error:

"...Declare statements not allowed as Public members of object modules"

Does this mean I have to stick this in a class module first (or at least

the
Declare elements)?

Regards

John

"Bob Phillips" wrote in message
...
You can also select the range, and type the name directly into the
names
box, to the left of the formula bar.

You might want to learn a bit more at
http://www.xldynamic.com/source/xld.Names.html

--

HTH

RP









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
Widening Columns in Chart Hoosierquilt Charts and Charting in Excel 7 May 9th 07 08:50 PM
widening a drop down box Mick Elliott Excel Worksheet Functions 1 April 9th 07 10:40 PM
Widening Validation Box Alex Mackenzie Excel Worksheet Functions 1 October 21st 05 05:16 PM
Widening the Name Box - need help John Wirt[_6_] Excel Programming 5 December 28th 04 06:12 AM
Widening the Name Box -- need help John Wirt[_6_] Excel Programming 3 December 23rd 04 05:37 PM


All times are GMT +1. The time now is 12:32 AM.

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"