Solved

Show Page Numbers

Posted on 2003-12-04
2
200 Views
Last Modified: 2010-05-03
I have several labels in my project and I want to know how I can "number" them (i.e. 5 of 25) so the user knows which page they are on.  Can this easily be done?

Thanks
0
Comment
Question by:johnqtr
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
PBuck earned 75 total points
Comment Utility
I think I know what you are asking.  You have a label for each page and want to display the current page to the user using the label?  If this is the case, then index the labels and on form load fill the captions.

Start the index with 1 for ease of use:
lblPageCount(1),lblPageCount(2)

For idx = 1  to lblPageCount.Count
   lblPageCount(idx).Caption = idx & " of " & lblPageCount.Count
Next

Hope this helps.
0
 
LVL 4

Expert Comment

by:PBuck
Comment Utility
Thank you for the grade.  Hope everything works well for you.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now