Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default filling a form with an array

I have a form that has 10 checkboxes and want to write the captions based on
an array I have previously filled. The array will change, 1 time it will
have 5 items and the next time it might have 7 or 8 and I plan on disabling
any checkbox that won't have a caption.

I'm having trouble getting started with the code. Any help would be
appreciated.

--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default filling a form with an array

a lot would depend on the particulars.


for i = 1 to 10
if arr(i) < "" then
with userform1.controls("checkBox" & i")
.Enabled = True
.Label = arr(i)
end With
else
userform1.controls("checkBox" & i).Enabled = False
end if
Next

--
Regards,
Tom Ogilvy



"JT" wrote in message
...
I have a form that has 10 checkboxes and want to write the captions based

on
an array I have previously filled. The array will change, 1 time it will
have 5 items and the next time it might have 7 or 8 and I plan on

disabling
any checkbox that won't have a caption.

I'm having trouble getting started with the code. Any help would be
appreciated.

--
JT



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
Automate form filling TimeCreature Excel Discussion (Misc queries) 1 March 18th 11 09:28 AM
Filling in a Gov't Form pdberger Excel Discussion (Misc queries) 1 June 1st 07 05:13 PM
Form Filling Abhishek kedia Excel Discussion (Misc queries) 0 September 22nd 06 02:29 PM
Filling in a form from a list sweetsue516 Excel Discussion (Misc queries) 0 March 29th 06 06:50 PM
filling a form in webpage R.VENKATARAMAN Excel Discussion (Misc queries) 0 August 19th 05 08:51 AM


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