LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Referencing labels dynamically.

Hi folks
I have a database with 12 sets of 10 questions.
I therefore have 10 labels on my userform. (One for each question in
the set)

When the user clicks on the NEXT button, I want to change the value of
label to the new question set.

I have tried the following.

For MyCount = 1 To 10
MyRange = "B" & MyCount
Label(MyCount) = Sheets("Questions").Range(MyRange)
Next MyCount

The problem is that "Label(MyCount)" does not work.

Does anybody know how reference the labels dynamically.
Thanks


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

 
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
Excel 2007 text labels in category axis - missing labels Boris Charts and Charting in Excel 3 December 5th 08 04:33 PM
referencing a different tab by referencing a list in the current s Kevin Excel Worksheet Functions 3 July 6th 07 07:57 PM
Referencing a cell dynamically jliz2803 Excel Worksheet Functions 3 February 14th 06 09:40 PM
Return a value by referencing row and column labels? Cellzman Excel Discussion (Misc queries) 6 December 2nd 05 04:08 PM
add data labels in charts with tools (dynamically) uriel78 Charts and Charting in Excel 2 April 15th 05 01:11 AM


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