Hej Jesper
Drop For I = men benyt:
Dim oCtrl as Object
For Each oCtrl In Controls
If TypeOf oCtrl Is TextBox Then
oCtrl.BackColor = vbBlack
End If
Next
"Jesper" <oz5pc@post.tdcadsl.dk> wrote in message
news:3eda6c4b$0$97210$edfadb0f@dread12.news.tele.dk...
>
> Hej NG
>
> Bruger denne og det virker fint, her hos mig. En kammerat ville også bruge
> det, men
> hos ham virker det ikke.... Nogen bedre løsning????
>
>
>
> Dim I
> For I = 0 To Me.Controls.Count - 1
> If TypeOf Me.Controls(I) Is TextBox Then Me.Controls(I).BackColor =
> vbYellow
> Next
>
>
> Jesper....
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (
http://www.grisoft.com).
> Version: 6.0.483 / Virus Database: 279 - Release Date: 19-05-2003
>
>