LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default make line visible or transparant

Yes, if it works then keep it simple.
Another option might be (and simpler I think) is
to run a progressbar in the statusbar:

Sub StatusProgressBar(lCounter As Long, _
lMax As Long, _
lInterval As Long, _
Optional strText As String)

Dim lStripes As Long

If lCounter Mod lInterval = 0 Then
lStripes = Round((lCounter / lMax) * 100, 0)
Application.StatusBar = strText & _
String(lStripes, "|") & _
String(100 - lStripes, ".") & "|"
End If

End Sub


RBS


"Robert" wrote in message
ups.com...
Thanks for all of the great suggestions and example code. However, I
am not a VBA guru and therefor decided to stick with easy functions
like this:

I use labels with a height of 0,75 so they appear to be lines.

Private Sub labelcolorchange()

Application.Wait Now + TimeValue("0:00:05")

If Cells(1, "A").Value <= Cells(1, "B").Value Then
Label1.BorderColor = RGB(0, 0, 205)
Label1.ForeColor = RGB(0, 0, 205)
Label1.BackColor = RGB(0, 0, 205)

Else

Label1.BorderColor = RGB(0, 0, 10)
Label1.ForeColor = RGB(0, 0, 10)
Label1.BackColor = RGB(0, 0, 10)

End If
End Sub

Maybe I can use your advanced code in a later state.


 
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
VBA Help with Make Visible Rows [email protected] Excel Programming 1 March 5th 07 06:03 PM
Make a line in a bar chart, and change color of any bars that exceed the line MarkM Excel Discussion (Misc queries) 4 July 5th 06 04:06 PM
Keeping first line visible Ann in Italy Excel Discussion (Misc queries) 4 June 15th 06 11:16 AM
excel transparant gridline sheet Ali Hamouda Setting up and Configuration of Excel 2 May 30th 06 09:16 AM
make outlook visible gopher Excel Programming 5 January 5th 05 06:15 PM


All times are GMT +1. The time now is 02:17 PM.

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"