Ich würde es z.B. so machen
In bEndergebnis steht dann &B11011001Code:Dim bPos As Byte Dim bWert As Byte Dim bErgebnis As Byte Dim bPos_wert As Byte Dim bEndergebnis As Byte bPos = 3 bWert = &B11 bErgebnis = &B11000001 bPos_wert = bWert Shift bPos_wert , Left , bPos bEndergebnis = bErgebnis Or bPos_wert End
Gruß
Rolf
Lesezeichen