Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Choose Invoice# fills Userform again

Patrick gave me a great code that allows me to have a user form were the
invoice# is choosen via combo box then the macro uses that invoice number to
fill the text boxes. Price Boxes Purchased etc. Problem arrises because
there can be more than one entry of an invoice number.
eg. 1001
1001
1002
1003
1003
The only thing in the database sheet that may never have duplicates is the
assigned index number. But I really need the user to have the option of
choosing the invoice. The only idea I know of would be to have another column
that concantenates the two (index & invoice) and have them choose that. Does
anyone have any other help? Thank you The following is the code Patrick gave
me.
Private Sub cboInvoice_Change()
RowNumber = cboInvoice.ListIndex + 2
ShowValue cboInvoice
End Sub

Private Sub UserForm_Initialize()

With Worksheets("ProduceData")
LastRow = .Range("b2").End(xlDown).Row
RowNumber = cboInvoice.ListIndex + 2
End With
End Sub
--
Though daily learning, I LOVE EXCEL!
Jennifer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Choose Invoice# fills Userform again

Never Mind- I just concantenated them to make a unique invoice number.
Thanks.Jennifer
--
Though daily learning, I LOVE EXCEL!
Jennifer


"Jennifer" wrote:

Patrick gave me a great code that allows me to have a user form were the
invoice# is choosen via combo box then the macro uses that invoice number to
fill the text boxes. Price Boxes Purchased etc. Problem arrises because
there can be more than one entry of an invoice number.
eg. 1001
1001
1002
1003
1003
The only thing in the database sheet that may never have duplicates is the
assigned index number. But I really need the user to have the option of
choosing the invoice. The only idea I know of would be to have another column
that concantenates the two (index & invoice) and have them choose that. Does
anyone have any other help? Thank you The following is the code Patrick gave
me.
Private Sub cboInvoice_Change()
RowNumber = cboInvoice.ListIndex + 2
ShowValue cboInvoice
End Sub

Private Sub UserForm_Initialize()

With Worksheets("ProduceData")
LastRow = .Range("b2").End(xlDown).Row
RowNumber = cboInvoice.ListIndex + 2
End With
End Sub
--
Though daily learning, I LOVE EXCEL!
Jennifer

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Choose Invoice# fills Userform again

But the code Patrick gave you did not depend on what Invoice number was
chosen. (It would be unclear how the user would differentiate however).

--
Regards,
Tom Ogilvy

"Jennifer" wrote in message
...
Never Mind- I just concantenated them to make a unique invoice number.
Thanks.Jennifer
--
Though daily learning, I LOVE EXCEL!
Jennifer


"Jennifer" wrote:

Patrick gave me a great code that allows me to have a user form were

the
invoice# is choosen via combo box then the macro uses that invoice

number to
fill the text boxes. Price Boxes Purchased etc. Problem arrises

because
there can be more than one entry of an invoice number.
eg. 1001
1001
1002
1003
1003
The only thing in the database sheet that may never have duplicates is

the
assigned index number. But I really need the user to have the option of
choosing the invoice. The only idea I know of would be to have another

column
that concantenates the two (index & invoice) and have them choose that.

Does
anyone have any other help? Thank you The following is the code Patrick

gave
me.
Private Sub cboInvoice_Change()
RowNumber = cboInvoice.ListIndex + 2
ShowValue cboInvoice
End Sub

Private Sub UserForm_Initialize()

With Worksheets("ProduceData")
LastRow = .Range("b2").End(xlDown).Row
RowNumber = cboInvoice.ListIndex + 2
End With
End Sub
--
Though daily learning, I LOVE EXCEL!
Jennifer



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
missing invoice toolbar when save customised invoice M.G New Users to Excel 1 September 26th 05 07:18 AM
Invoice templet Excel97 to 2003 invoice toolbar missing MarolynInMarion Excel Discussion (Misc queries) 0 August 19th 05 07:15 PM
Choose Invoice# fills userform Jennifer Excel Programming 4 April 28th 05 10:24 AM
How do I change the invoice number assigned in Invoice template... akress Excel Discussion (Misc queries) 1 February 28th 05 06:36 PM
Userform Combobox to choose date Rob Excel Programming 2 February 11th 04 12:19 PM


All times are GMT +1. The time now is 04:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"