lable caption

P

pswanie

i got userfrom, multipage, lable1 on page2

how do i get the caption of that label to pick one cell down every time i
open the userform? on first open it wil show c1. second open it will show c2
thirt open c3. untill it gets to a cell with no data and start back at c1
 
B

Bob Phillips

Declare a variable at the start of the standard code module

Public mCaptionRow As Long

and in the form activate, use

mCaptionRow = mCaptionRow +1
Multipage1.Labelname.Caption = Worksheets("Sheet1").Cells(mCaptionRow,
"C").Value

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
P

pswanie

i get a object required msg when using this code

Bob Phillips said:
Declare a variable at the start of the standard code module

Public mCaptionRow As Long

and in the form activate, use

mCaptionRow = mCaptionRow +1
Multipage1.Labelname.Caption = Worksheets("Sheet1").Cells(mCaptionRow,
"C").Value

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top