Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with creating numerous shapes on a single sheet

Hello,

It's an ancient post that didn't get any answer and that I reuse as
get the exact same problem. I hope it's the right place for that.

Problem is this :

from within a macro, i draw textboxes on my excel-sheet using

Sheets(sht).TextBoxes.Add(lft, tp, wdth, hght).Select
....

everything seems fine, a textbox with the name 'Text nnnnn' i
generated,
where nnnnn is a sequence number, always increasing by 1.
At a certain point (appr 65000), this process fails with error :

Run-time error '1004':
Select method of Textbox class failed.

I assume the process reaches its maximun for this (internal) counte
(65000
per sheet).
Deleting textboxes does not affect this counter.
Also giving this textbox a self-generated name, using

.....
Selection.name = "Textbox " & count
count = count + 1
....

has no influence on this counter, it only affects the name of th
textbox.
As this application is frequently used, and generating about on
thousand
textboxes each time, you'll understand that reaching the point o
65000
happens (to) often.

Is there way to manipulate this value from within my macro, or is ther
a
work-around ????

Help of any kind would be very welcome and appreciated.

Thanks !

Youpi Col

--
Message posted from http://www.ExcelForum.com

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
Run numerous calculations through a single formula MZ Excel Discussion (Misc queries) 1 February 17th 10 02:24 PM
Creating new worksheets using data from a single sheet Ryan N Excel Worksheet Functions 2 September 5th 08 07:15 PM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
Creating shapes from given criteria Michael M Excel Worksheet Functions 0 April 26th 06 03:32 AM
creating Shapes Christof DB Excel Programming 2 November 7th 03 12:59 PM


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