error message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrcw
    New Member
    • Nov 2008
    • 82

    error message

    Sub HidePages()
    Dim page As String
    Dim i As Integer
    For i = 1 To 50
    page(i).Visible = False
    Next
    End Sub
    gives the error message "Visible is not a member of char" . I believe the line "page(i).visibl e=true" is wrong because if I replace it with "beep()" the loop works. Can anybody see what is wrong?
    Ta
  • VbKing
    New Member
    • Nov 2008
    • 2

    #2
    Yes ofcourse it will give error because you need to dim a control(command button,textbox. ..) so when you dim it you should set it ex:
    Set I = Me.Command1
    so it's complicated , It's beter to use manual code.

    Page1.show
    Page2.show

    Comment

    • rpicilli
      New Member
      • Aug 2008
      • 77

      #3
      Hi mrcw,

      Try to submit your doubts in only one post. You put the same question is differents post is not a good approche.

      Rpicilli

      Comment

      Working...