View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
anilsolipuram[_108_] anilsolipuram[_108_] is offline
external usenet poster
 
Posts: 1
Default looking for a way to make a form Txtbox only visable on Mondays


you are almost there.

it will hide txtbox if it is satuday,



Private Sub UserForm_Initialize()

If Weekday(Date, vbSaturday) = 1 Then
LblIntMon.Caption = "Weight"
TxtBody.Visible = False

TxtBody.Text = LastWeight
Else
LblIntMon.Caption = ""
TxtBody.Visible = True
TxtBody.Text = LastWeight

End If


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=382216