Hi,
I have stumbled over a problem during the development of an order system and would like some advice. It's a simple system where the rows are orders and columns are different data for the orders. Some of the cells contain drop down menus and some of the cells contain formulas (VLOOKUP primarily), that are dependant of the value in other cells. I have created a simple macro that inserts a new order into the table:
As you can see it inserts the value of all cells in row 100 into the first empty row. The idea was to insert as much data as possible into row 100 (including drop down menus and formulas), so that the user of the system wouldnt have to fill out all the cells manually. The problem is VLOOKUP. It is dependant on the cell to the left of it. Is there any way to make this a relative reference or is this a stupid way to make this system?
I have stumbled over a problem during the development of an order system and would like some advice. It's a simple system where the rows are orders and columns are different data for the orders. Some of the cells contain drop down menus and some of the cells contain formulas (VLOOKUP primarily), that are dependant of the value in other cells. I have created a simple macro that inserts a new order into the table:
Code:
Sub butInsertNewOrder()
Range("A4").Select
Do Until ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Range("A1").Select
Loop
Rows("100:100").Copy
ActiveSheet.Paste
End Sub
As you can see it inserts the value of all cells in row 100 into the first empty row. The idea was to insert as much data as possible into row 100 (including drop down menus and formulas), so that the user of the system wouldnt have to fill out all the cells manually. The problem is VLOOKUP. It is dependant on the cell to the left of it. Is there any way to make this a relative reference or is this a stupid way to make this system?