LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default Form Command Button Problem..

Hi All,

Developing a UserForm with CommandButtons, one for each week of the year. I
first inserted CB's (1-13) in a row representing the first Qtr of the year,
then copied and pasted this column across the Form. In the process of moving
the rows of buttons to their respective spot, I didn't keep them in order and
had to rename them to keep some order in the form.

Problem....when I got to the fourth column of CB's, the first one should be
labeled CommandButton40 but I got the "Could not set the Name property.
Ambiguous Name.".....then tried the number 41 with the same results until I
got to the number 53, which the form allowed. There are no other buttons on
this form, and in looking through the dropdown at the top of the properties
window, there are no CommandButtons 40 thru 52 listed, so I'm not sure why
I'm getting this error msg.

One thought just came to mind...I did paste one too many rows of buttons,
and deleted one of these rows. These may have been numbered 40-52. So, for
a test, I opened a new sheet and tried to duplicate the error......made a row
of CommandButtons (1-4), copied and pasted that row twice, ending up with two
more columns of buttons numbering (5-8 & 9-12). I deleted the middle row
(5-8) and then renamed (9-12) to (5-8).....the new names were accepted with
no problem. It would appear that the deleteing of the row in my original
form is not the problem.

Any help explaining this would be greatly appreciated.

TIA,

Don
 
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
opening a worksheet with a command button on a form gbpg Excel Discussion (Misc queries) 2 September 1st 07 05:40 AM
User form and Command button Marilyn Excel Discussion (Misc queries) 3 May 9th 07 12:50 AM
Command Button vs Form Button Bri[_3_] Excel Programming 2 February 3rd 06 08:18 AM
Command button on data-entry form Susy Excel Discussion (Misc queries) 1 February 15th 05 01:46 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM


All times are GMT +1. The time now is 08:04 AM.

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"