I have an order form that I want users to be able to easily enter line items. The data, form, command would be perfect for this, BUT
My headings for this part of the form are in B14 rather than in A1 (the default list row). The headings appear something like this ("/" denotes column break):
STOCK NO / DESCRIPTION / UOI / QUANTITY
I can block the headings (B14:F14) and then manually invoke the data, form, command and click OK AND the headings appear correctly in the pop-up box. The data entered appears correctly in the first row below the headings and lets me keep adding line items.
Problem is, if I try to create a macro to calls this up, it always calls up the first row (A1) headings in the spreadsheet for the input names/headings in the pop-up box. I want to attach a macro to a button for ease of the user.
The macro code is rather basic - here it is:
Range("B14:F14").Select
ActiveSheet.ShowDataForm
Anyone know a workaround - if possible? That is, what code can I add to the macro to make it select the range column headings(B14:F14) rather than the default top row (A1)?
Your thoughts/help greatly appreciated.
dfmor
My headings for this part of the form are in B14 rather than in A1 (the default list row). The headings appear something like this ("/" denotes column break):
STOCK NO / DESCRIPTION / UOI / QUANTITY
I can block the headings (B14:F14) and then manually invoke the data, form, command and click OK AND the headings appear correctly in the pop-up box. The data entered appears correctly in the first row below the headings and lets me keep adding line items.
Problem is, if I try to create a macro to calls this up, it always calls up the first row (A1) headings in the spreadsheet for the input names/headings in the pop-up box. I want to attach a macro to a button for ease of the user.
The macro code is rather basic - here it is:
Range("B14:F14").Select
ActiveSheet.ShowDataForm
Anyone know a workaround - if possible? That is, what code can I add to the macro to make it select the range column headings(B14:F14) rather than the default top row (A1)?
Your thoughts/help greatly appreciated.
dfmor