Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Access Object Property from VBA Module in Excel 2010

Posted on 2016-11-09
2
Medium Priority
?
66 Views
Last Modified: 2016-11-09
I have a module in VBA code in an Excel 2010 spreadsheet.

The spreadsheet has multiple worksheets.

On one worksheet I have placed a "Progress Bar ActiveX Control".

I need to be able to update the current value of this control from my module, but can't work out the correct code.
0
Comment
Question by:Terry Rogers
2 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 41880513
HI,

pls try
Dim cProgressBar1 As Object

Set cProgressBar1 = Sheet1.ProgressBar1 '// OR Worksheets("YourSheetName").ProgressBar1
cProgressBar1.Value = Counter

Open in new window

Regards
1
 
LVL 1

Author Closing Comment

by:Terry Rogers
ID: 41880800
Worked a treat. Thank you! :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

824 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