Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have designed a jobsheet in excel and am using a user form to pick parts from a list located on a different worksheet. I have a quantity box on there with a spinbutton and when a control button is pressed the parts and quantities are updated on the next available empty line on my job sheet. I can manually type into the combo box and all works great, but I cannot get the box to pick up any parts from the worksheet. The parts list will be modified frequently by others so I need to add all items untill it comes across a blank line, or perhaps a flag at the end of the list would be better??? Also, it would be handy if the pick list could jump to a section by pressing the first letter key on the keyboard, can a combo box do that? Heres what I have that doesnt work! Private Sub cboPartsused_Click() ActiveWorkbook.Sheets("temp parts").Activate Range("A2").Select Do If IsEmpty(ActiveCell) = False Then ActiveCell.Offset(1, 0).Select AddItem.ActiveCell.Value End If Loop Until IsEmpty(ActiveCell) = True End Sub Now just to make things more complicated! I have wrote macros that enable the job sheet to be closed without prompting to be saved and before it closes, a new sheet is opened and the values copied and pasted into it so the macros are not copied. Then the filename contains the job number and date time stamp so the filenames are not duplicated, and the files are saved into another folder on the desktop. This can be printed "on site" and given to the customer. I would like all the info to go to another almost duplicate worksheet except that on this one, the contents of 2 more columns (prices etc) are placed in the jobsheet for invoicing purposes, but I dont want the prices to appear in the combo box, only the colum A containing part descriptions. Can anyone out there help? I am totally new to this VBA programming. The last time I programmed anything was 15 years ago - basic and 6502!! I'm slowly getting back into programming! Thanks in advance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combo Box to populate variable output range | Excel Discussion (Misc queries) | |||
Best way to populate worksheet from 2 combo boxes | Excel Worksheet Functions | |||
Selectively Populate Excel VBA Combo Box | Excel Programming | |||
Populate a combo box from a worksheet with VBA | Excel Programming | |||
Using a specific range to populate a list/combo box | Excel Programming |