PC Review


Reply
Thread Tools Rate Thread

Combobox userform help please

 
 
Chris
Guest
Posts: n/a
 
      19th Oct 2006
I have a userform for entering and editing data that has a combox on it
so the user can jump to a specific record to edit. I also have a "next"
button to go to the next record and a "previous" button to back a
record. If I leave the combobox blank in it's inital state I can change
data in the userform, hit the "next button" and the changes show up
correctly to the worksheet. However, once I use the combobox to jump to
a record and try make a change and hit the next button, instead of the
change showing up correctly on the worksheet, my record gets
overwritten and it messes up my worksheet.

Here is my code if anyone can advise on how to correct the above
problem.


Private Sub cmdNext_Click()
' Save form contents before changing rows:
SaveRow
' Increment row number:
lCurrentRow = lCurrentRow + 1
' Show contents of row in the form:
LoadRow
End Sub

Private Sub ComboBox1_Change()
Set rng = Range(ComboBox1.RowSource)
txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
End Sub

Private Sub UserForm_Activate()
' Read initial values from Row 1:
lCurrentRow = Range("My_Range").Cells(4, 1).Row
LoadRow
ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
Range("My_Range").Offset(4).End(xlDown)).Address

End Sub

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
Chris, please post the LoadRow and SaveRow subroutines, I believe they are
the answer.
--
Charles Chickering

"A good example is twice the value of good advice."


"Chris" wrote:

> I have a userform for entering and editing data that has a combox on it
> so the user can jump to a specific record to edit. I also have a "next"
> button to go to the next record and a "previous" button to back a
> record. If I leave the combobox blank in it's inital state I can change
> data in the userform, hit the "next button" and the changes show up
> correctly to the worksheet. However, once I use the combobox to jump to
> a record and try make a change and hit the next button, instead of the
> change showing up correctly on the worksheet, my record gets
> overwritten and it messes up my worksheet.
>
> Here is my code if anyone can advise on how to correct the above
> problem.
>
>
> Private Sub cmdNext_Click()
> ' Save form contents before changing rows:
> SaveRow
> ' Increment row number:
> lCurrentRow = lCurrentRow + 1
> ' Show contents of row in the form:
> LoadRow
> End Sub
>
> Private Sub ComboBox1_Change()
> Set rng = Range(ComboBox1.RowSource)
> txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
> txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
> txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
> txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
> txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
> txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
> txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
> txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
> txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
> txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
> txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
> txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
> txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
> End Sub
>
> Private Sub UserForm_Activate()
> ' Read initial values from Row 1:
> lCurrentRow = Range("My_Range").Cells(4, 1).Row
> LoadRow
> ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
> Range("My_Range").Offset(4).End(xlDown)).Address
>
> End Sub
>
>

 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      19th Oct 2006
Private Sub LoadRow()
txtReqNum.Text = Cells(lCurrentRow, 1).Value
txtDateOpen.Text = Cells(lCurrentRow, 2).Value
txtType.Text = Cells(lCurrentRow, 4).Value
txtPriority.Text = Cells(lCurrentRow, 5).Value
txtTitle.Text = Cells(lCurrentRow, 6).Value
txtGrd.Text = Cells(lCurrentRow, 7).Value
txtRange.Text = Cells(lCurrentRow, 8).Value
txtExpected.Text = Cells(lCurrentRow, 9).Value
txtNR.Text = Cells(lCurrentRow, 11).Value
txtManager.Text = Cells(lCurrentRow, 12).Value
txtRecr.Text = Cells(lCurrentRow, 13).Value
txtStatus.Text = Cells(lCurrentRow, 14).Value
txtCandidate.Text = Cells(lCurrentRow, 15).Value
End Sub

Private Sub SaveRow()
Cells(lCurrentRow, 1).Value = txtReqNum.Text
Cells(lCurrentRow, 2).Value = txtDateOpen.Text
Cells(lCurrentRow, 4).Value = txtType.Text
Cells(lCurrentRow, 5).Value = txtPriority.Text
Cells(lCurrentRow, 6).Value = txtTitle.Text
Cells(lCurrentRow, 7).Value = txtGrd.Text
Cells(lCurrentRow, 8).Value = txtRange.Text
Cells(lCurrentRow, 9).Value = txtExpected.Text
Cells(lCurrentRow, 11).Value = txtNR.Text
Cells(lCurrentRow, 12).Value = txtManager.Text
Cells(lCurrentRow, 13).Value = txtRecr.Text
Cells(lCurrentRow, 14).Value = txtStatus.Text
Cells(lCurrentRow, 15).Value = txtCandidate.Text
End Sub


Charles Chickering wrote:
> Chris, please post the LoadRow and SaveRow subroutines, I believe they are
> the answer.
> --
> Charles Chickering
>
> "A good example is twice the value of good advice."
>
>
> "Chris" wrote:
>
> > I have a userform for entering and editing data that has a combox on it
> > so the user can jump to a specific record to edit. I also have a "next"
> > button to go to the next record and a "previous" button to back a
> > record. If I leave the combobox blank in it's inital state I can change
> > data in the userform, hit the "next button" and the changes show up
> > correctly to the worksheet. However, once I use the combobox to jump to
> > a record and try make a change and hit the next button, instead of the
> > change showing up correctly on the worksheet, my record gets
> > overwritten and it messes up my worksheet.
> >
> > Here is my code if anyone can advise on how to correct the above
> > problem.
> >
> >
> > Private Sub cmdNext_Click()
> > ' Save form contents before changing rows:
> > SaveRow
> > ' Increment row number:
> > lCurrentRow = lCurrentRow + 1
> > ' Show contents of row in the form:
> > LoadRow
> > End Sub
> >
> > Private Sub ComboBox1_Change()
> > Set rng = Range(ComboBox1.RowSource)
> > txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
> > txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
> > txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
> > txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
> > txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
> > txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
> > txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
> > txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
> > txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
> > txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
> > txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
> > txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
> > txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
> > End Sub
> >
> > Private Sub UserForm_Activate()
> > ' Read initial values from Row 1:
> > lCurrentRow = Range("My_Range").Cells(4, 1).Row
> > LoadRow
> > ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
> > Range("My_Range").Offset(4).End(xlDown)).Address
> >
> > End Sub
> >
> >


 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
I'm not seeing it right off, if you would like you can send me a copy of your
workbook to (E-Mail Removed) and I'll see if I can debug it.
--
Charles Chickering

"A good example is twice the value of good advice."


"Chris" wrote:

> Private Sub LoadRow()
> txtReqNum.Text = Cells(lCurrentRow, 1).Value
> txtDateOpen.Text = Cells(lCurrentRow, 2).Value
> txtType.Text = Cells(lCurrentRow, 4).Value
> txtPriority.Text = Cells(lCurrentRow, 5).Value
> txtTitle.Text = Cells(lCurrentRow, 6).Value
> txtGrd.Text = Cells(lCurrentRow, 7).Value
> txtRange.Text = Cells(lCurrentRow, 8).Value
> txtExpected.Text = Cells(lCurrentRow, 9).Value
> txtNR.Text = Cells(lCurrentRow, 11).Value
> txtManager.Text = Cells(lCurrentRow, 12).Value
> txtRecr.Text = Cells(lCurrentRow, 13).Value
> txtStatus.Text = Cells(lCurrentRow, 14).Value
> txtCandidate.Text = Cells(lCurrentRow, 15).Value
> End Sub
>
> Private Sub SaveRow()
> Cells(lCurrentRow, 1).Value = txtReqNum.Text
> Cells(lCurrentRow, 2).Value = txtDateOpen.Text
> Cells(lCurrentRow, 4).Value = txtType.Text
> Cells(lCurrentRow, 5).Value = txtPriority.Text
> Cells(lCurrentRow, 6).Value = txtTitle.Text
> Cells(lCurrentRow, 7).Value = txtGrd.Text
> Cells(lCurrentRow, 8).Value = txtRange.Text
> Cells(lCurrentRow, 9).Value = txtExpected.Text
> Cells(lCurrentRow, 11).Value = txtNR.Text
> Cells(lCurrentRow, 12).Value = txtManager.Text
> Cells(lCurrentRow, 13).Value = txtRecr.Text
> Cells(lCurrentRow, 14).Value = txtStatus.Text
> Cells(lCurrentRow, 15).Value = txtCandidate.Text
> End Sub
>
>
> Charles Chickering wrote:
> > Chris, please post the LoadRow and SaveRow subroutines, I believe they are
> > the answer.
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Chris" wrote:
> >
> > > I have a userform for entering and editing data that has a combox on it
> > > so the user can jump to a specific record to edit. I also have a "next"
> > > button to go to the next record and a "previous" button to back a
> > > record. If I leave the combobox blank in it's inital state I can change
> > > data in the userform, hit the "next button" and the changes show up
> > > correctly to the worksheet. However, once I use the combobox to jump to
> > > a record and try make a change and hit the next button, instead of the
> > > change showing up correctly on the worksheet, my record gets
> > > overwritten and it messes up my worksheet.
> > >
> > > Here is my code if anyone can advise on how to correct the above
> > > problem.
> > >
> > >
> > > Private Sub cmdNext_Click()
> > > ' Save form contents before changing rows:
> > > SaveRow
> > > ' Increment row number:
> > > lCurrentRow = lCurrentRow + 1
> > > ' Show contents of row in the form:
> > > LoadRow
> > > End Sub
> > >
> > > Private Sub ComboBox1_Change()
> > > Set rng = Range(ComboBox1.RowSource)
> > > txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
> > > txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
> > > txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
> > > txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
> > > txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
> > > txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
> > > txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
> > > txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
> > > txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
> > > txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
> > > txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
> > > txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
> > > txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
> > > End Sub
> > >
> > > Private Sub UserForm_Activate()
> > > ' Read initial values from Row 1:
> > > lCurrentRow = Range("My_Range").Cells(4, 1).Row
> > > LoadRow
> > > ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
> > > Range("My_Range").Offset(4).End(xlDown)).Address
> > >
> > > End Sub
> > >
> > >

>
>

 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      20th Oct 2006
I sent it from an RHI email address.

Charles Chickering wrote:
> I'm not seeing it right off, if you would like you can send me a copy of your
> workbook to (E-Mail Removed) and I'll see if I can debug it.
> --
> Charles Chickering
>
> "A good example is twice the value of good advice."
>
>
> "Chris" wrote:
>
> > Private Sub LoadRow()
> > txtReqNum.Text = Cells(lCurrentRow, 1).Value
> > txtDateOpen.Text = Cells(lCurrentRow, 2).Value
> > txtType.Text = Cells(lCurrentRow, 4).Value
> > txtPriority.Text = Cells(lCurrentRow, 5).Value
> > txtTitle.Text = Cells(lCurrentRow, 6).Value
> > txtGrd.Text = Cells(lCurrentRow, 7).Value
> > txtRange.Text = Cells(lCurrentRow, 8).Value
> > txtExpected.Text = Cells(lCurrentRow, 9).Value
> > txtNR.Text = Cells(lCurrentRow, 11).Value
> > txtManager.Text = Cells(lCurrentRow, 12).Value
> > txtRecr.Text = Cells(lCurrentRow, 13).Value
> > txtStatus.Text = Cells(lCurrentRow, 14).Value
> > txtCandidate.Text = Cells(lCurrentRow, 15).Value
> > End Sub
> >
> > Private Sub SaveRow()
> > Cells(lCurrentRow, 1).Value = txtReqNum.Text
> > Cells(lCurrentRow, 2).Value = txtDateOpen.Text
> > Cells(lCurrentRow, 4).Value = txtType.Text
> > Cells(lCurrentRow, 5).Value = txtPriority.Text
> > Cells(lCurrentRow, 6).Value = txtTitle.Text
> > Cells(lCurrentRow, 7).Value = txtGrd.Text
> > Cells(lCurrentRow, 8).Value = txtRange.Text
> > Cells(lCurrentRow, 9).Value = txtExpected.Text
> > Cells(lCurrentRow, 11).Value = txtNR.Text
> > Cells(lCurrentRow, 12).Value = txtManager.Text
> > Cells(lCurrentRow, 13).Value = txtRecr.Text
> > Cells(lCurrentRow, 14).Value = txtStatus.Text
> > Cells(lCurrentRow, 15).Value = txtCandidate.Text
> > End Sub
> >
> >
> > Charles Chickering wrote:
> > > Chris, please post the LoadRow and SaveRow subroutines, I believe they are
> > > the answer.
> > > --
> > > Charles Chickering
> > >
> > > "A good example is twice the value of good advice."
> > >
> > >
> > > "Chris" wrote:
> > >
> > > > I have a userform for entering and editing data that has a combox on it
> > > > so the user can jump to a specific record to edit. I also have a "next"
> > > > button to go to the next record and a "previous" button to back a
> > > > record. If I leave the combobox blank in it's inital state I can change
> > > > data in the userform, hit the "next button" and the changes show up
> > > > correctly to the worksheet. However, once I use the combobox to jump to
> > > > a record and try make a change and hit the next button, instead of the
> > > > change showing up correctly on the worksheet, my record gets
> > > > overwritten and it messes up my worksheet.
> > > >
> > > > Here is my code if anyone can advise on how to correct the above
> > > > problem.
> > > >
> > > >
> > > > Private Sub cmdNext_Click()
> > > > ' Save form contents before changing rows:
> > > > SaveRow
> > > > ' Increment row number:
> > > > lCurrentRow = lCurrentRow + 1
> > > > ' Show contents of row in the form:
> > > > LoadRow
> > > > End Sub
> > > >
> > > > Private Sub ComboBox1_Change()
> > > > Set rng = Range(ComboBox1.RowSource)
> > > > txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
> > > > txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
> > > > txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
> > > > txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
> > > > txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
> > > > txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
> > > > txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
> > > > txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
> > > > txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
> > > > txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
> > > > txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
> > > > txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
> > > > txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
> > > > End Sub
> > > >
> > > > Private Sub UserForm_Activate()
> > > > ' Read initial values from Row 1:
> > > > lCurrentRow = Range("My_Range").Cells(4, 1).Row
> > > > LoadRow
> > > > ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
> > > > Range("My_Range").Offset(4).End(xlDown)).Address
> > > >
> > > > End Sub
> > > >
> > > >

> >
> >


 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      20th Oct 2006
It's fixed and sent back to you, I described the problems in detail in the
email.
--
Charles Chickering

"A good example is twice the value of good advice."


"Chris" wrote:

> I sent it from an RHI email address.
>
> Charles Chickering wrote:
> > I'm not seeing it right off, if you would like you can send me a copy of your
> > workbook to (E-Mail Removed) and I'll see if I can debug it.
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Chris" wrote:
> >
> > > Private Sub LoadRow()
> > > txtReqNum.Text = Cells(lCurrentRow, 1).Value
> > > txtDateOpen.Text = Cells(lCurrentRow, 2).Value
> > > txtType.Text = Cells(lCurrentRow, 4).Value
> > > txtPriority.Text = Cells(lCurrentRow, 5).Value
> > > txtTitle.Text = Cells(lCurrentRow, 6).Value
> > > txtGrd.Text = Cells(lCurrentRow, 7).Value
> > > txtRange.Text = Cells(lCurrentRow, 8).Value
> > > txtExpected.Text = Cells(lCurrentRow, 9).Value
> > > txtNR.Text = Cells(lCurrentRow, 11).Value
> > > txtManager.Text = Cells(lCurrentRow, 12).Value
> > > txtRecr.Text = Cells(lCurrentRow, 13).Value
> > > txtStatus.Text = Cells(lCurrentRow, 14).Value
> > > txtCandidate.Text = Cells(lCurrentRow, 15).Value
> > > End Sub
> > >
> > > Private Sub SaveRow()
> > > Cells(lCurrentRow, 1).Value = txtReqNum.Text
> > > Cells(lCurrentRow, 2).Value = txtDateOpen.Text
> > > Cells(lCurrentRow, 4).Value = txtType.Text
> > > Cells(lCurrentRow, 5).Value = txtPriority.Text
> > > Cells(lCurrentRow, 6).Value = txtTitle.Text
> > > Cells(lCurrentRow, 7).Value = txtGrd.Text
> > > Cells(lCurrentRow, 8).Value = txtRange.Text
> > > Cells(lCurrentRow, 9).Value = txtExpected.Text
> > > Cells(lCurrentRow, 11).Value = txtNR.Text
> > > Cells(lCurrentRow, 12).Value = txtManager.Text
> > > Cells(lCurrentRow, 13).Value = txtRecr.Text
> > > Cells(lCurrentRow, 14).Value = txtStatus.Text
> > > Cells(lCurrentRow, 15).Value = txtCandidate.Text
> > > End Sub
> > >
> > >
> > > Charles Chickering wrote:
> > > > Chris, please post the LoadRow and SaveRow subroutines, I believe they are
> > > > the answer.
> > > > --
> > > > Charles Chickering
> > > >
> > > > "A good example is twice the value of good advice."
> > > >
> > > >
> > > > "Chris" wrote:
> > > >
> > > > > I have a userform for entering and editing data that has a combox on it
> > > > > so the user can jump to a specific record to edit. I also have a "next"
> > > > > button to go to the next record and a "previous" button to back a
> > > > > record. If I leave the combobox blank in it's inital state I can change
> > > > > data in the userform, hit the "next button" and the changes show up
> > > > > correctly to the worksheet. However, once I use the combobox to jump to
> > > > > a record and try make a change and hit the next button, instead of the
> > > > > change showing up correctly on the worksheet, my record gets
> > > > > overwritten and it messes up my worksheet.
> > > > >
> > > > > Here is my code if anyone can advise on how to correct the above
> > > > > problem.
> > > > >
> > > > >
> > > > > Private Sub cmdNext_Click()
> > > > > ' Save form contents before changing rows:
> > > > > SaveRow
> > > > > ' Increment row number:
> > > > > lCurrentRow = lCurrentRow + 1
> > > > > ' Show contents of row in the form:
> > > > > LoadRow
> > > > > End Sub
> > > > >
> > > > > Private Sub ComboBox1_Change()
> > > > > Set rng = Range(ComboBox1.RowSource)
> > > > > txtReqNum.Text = rng(ComboBox1.ListIndex + 1)(1, 1)
> > > > > txtDateOpen.Text = rng(ComboBox1.ListIndex + 1)(1, 2)
> > > > > txtType.Text = rng(ComboBox1.ListIndex + 1)(1, 4)
> > > > > txtPriority.Text = rng(ComboBox1.ListIndex + 1)(1, 5)
> > > > > txtTitle.Text = rng(ComboBox1.ListIndex + 1)(1, 6)
> > > > > txtGrd.Text = rng(ComboBox1.ListIndex + 1)(1, 7)
> > > > > txtRange.Text = rng(ComboBox1.ListIndex + 1)(1, 8)
> > > > > txtExpected.Text = rng(ComboBox1.ListIndex + 1)(1, 9)
> > > > > txtNR.Text = rng(ComboBox1.ListIndex + 1)(1, 11)
> > > > > txtManager.Text = rng(ComboBox1.ListIndex + 1)(1, 12)
> > > > > txtRecr.Text = rng(ComboBox1.ListIndex + 1)(1, 13)
> > > > > txtStatus.Text = rng(ComboBox1.ListIndex + 1)(1, 14)
> > > > > txtCandidate.Text = rng(ComboBox1.ListIndex + 1)(1, 15)
> > > > > End Sub
> > > > >
> > > > > Private Sub UserForm_Activate()
> > > > > ' Read initial values from Row 1:
> > > > > lCurrentRow = Range("My_Range").Cells(4, 1).Row
> > > > > LoadRow
> > > > > ComboBox1.RowSource = Range(Range("My_Range").Offset(4), _
> > > > > Range("My_Range").Offset(4).End(xlDown)).Address
> > > > >
> > > > > End Sub
> > > > >
> > > > >
> > >
> > >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
userform combobox Jonathan Microsoft Outlook VBA Programming 1 25th May 2010 02:32 AM
combobox in userform bernd Microsoft Excel Programming 1 15th Jun 2007 02:12 AM
Userform w/ComboBox =?Utf-8?B?RC5QYXJrZXI=?= Microsoft Excel Misc 2 6th May 2005 04:28 PM
ComboBox on UserForm Michel Microsoft Excel Programming 3 1st Aug 2004 11:10 PM
ComboBox on UserForm Michel Microsoft Excel Programming 2 31st Jul 2004 10:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.