title: move to next page on userform multipage excel VBA
body: <p>i have 5 pages in multipage userform.</p>
  
  <p>if the next button enabled, which it can be clicked by user then it should move to next hidden page, i always got an error "Object Required" it drives me crazy.</p>
  
  <pre><code>Private Sub btnGenerate_Click()
  iPageNo = MultiPage1.Value + 1
  MultiPage1.Pages(iPageNo).Visible = True
  MultiPage1.Value = iPageNo
  End Sub
  </code></pre>
  
  <p>that code seems doesnt work for me, any help would be appreciate.</p>
  
  <p>Thanks</p>