Microsoft Progress Bar Control is missing

僤鯓⒐⒋嵵緔 提交于 2019-12-11 13:25:58

问题


I need to create the progress bar on a user form. For inserting progress bar, opened toolbox , right clicked on it and choose “Additional Controls”. (Alternatively, I could go up to the “Tools”/”Additional Controls” menu). But in that list of components, “Microsoft Progress Bar Control 6.0 (SP4)” is missing. I am using Microsoft Office 2010 and Windows 7. Please help me


回答1:


Two suggestions :)

1) Search your pc for MSCOMCTL.Ocx. If you find it then register it by clicking on Windows Start Button ~~> Run and then typing this text and pressing Enter

regsvr32 C:\Windows\System32\MSCOMCTL.Ocx

I am assuming that the ocx is in C:\Windows\System32

If you don't have that then please download it from here and then repeat the above steps.

Once done, you will now be able to use the control.

2) Please see this link. Sometimes you don't need a progressbar control ;)

Topic: VBA - Working with Scroll Bars - The most simplest way

Link: http://www.vbforums.com/showthread.php?t=511916

HTH

Sid




回答2:


You can make a makeshift loading bar whit any of the controlls you allready got, by simply useing width.

Example would be useing a label inside a frame, the frame will work as borders for it, so the top and left can be 0, then the total lenght of the frame works as max length for the label.. i think by now you see where im going whit this, basicly now all you gota do is come up whit a counter basicly a loop that counts up to max frame length :)

But, like i said whit creativity, you can use buttons, the form itself, scrollbar basicly contains itself if you dont mind it beeing a unclickable (scroll) button moveing across.



来源:https://stackoverflow.com/questions/9374715/microsoft-progress-bar-control-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!