Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syscmd(acsyscmdinitmeter) in Excel

Status
Not open for further replies.

zollo9999

Programmer
May 12, 2002
95
AU
Hi

In Access, I've used the SysCmd object to create a Progress meter in the status line.

Is it possible to do the same thing in Excel?

The code below is not recognized in XL.

'varReturn = syscmd(acsyscmdinitmeter, "Progress", intRowEnd - intRowStart)


In my XL code, I added a reference to the access library, but it didn't help.

(Note I also posted this in the MS Office Forum)

thanks
pb


Zollo9999 A+
(Very Part-Time Programmer)
[thumbsup]
 
I've simulated a progress bar in XL using dots, which isn't too different from Access' blue squares.

Note: timer used for demonstration only.
Code:
Sub ShowProgress()
  Dim lngStart As Long
  Dim strDots As String
  
  lngStart = Timer
  
  While Timer - lngStart < 20
    Application.Wait (Now + TimeValue(&quot;00:00:01&quot;))
    strDots = strDots & Chr(149) & Chr(149)
    Application.StatusBar = &quot;Processing &quot; & strDots
    DoEvents
  Wend
  
  Application.StatusBar = False
  
End Sub


VBSlammer
redinvader3walking.gif

[sleeping]Unemployed in Houston, Texas
 
Thanks
That looks like a simple solution.
I'll igve it a go next week.

Zollo9999 A+
(Very Part-Time Programmer)
[thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top