I have a flowchart sheet for my Petroleum Engineering project and it's set up so the user can type the data into the flowchart box and then add/update the new well permit to the database sheet. The input ranges on flowchart do not change but the database does, each table in the database sheet begins every 13th cells. i.e
1. New Permit
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14. New permit
etc...
I am having touble trying to update one permit then automaticaly move to next permit and so on. If you need my sheet then let me know how to send it to you and i will. THANKS!
1. New Permit
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14. New permit
etc...
I am having touble trying to update one permit then automaticaly move to next permit and so on. If you need my sheet then let me know how to send it to you and i will. THANKS!
Code:
Sub UpdateData_click()
ActiveWorkbook.Sheets("Database").Range("A799:I799").Value = ActiveWorkbook.Sheets("Flowchart").Range("G25:O25").Value
ActiveWorkbook.Sheets("Database").Range("A802:I802").Value = ActiveWorkbook.Sheets("Flowchart").Range("G28:O28").Value
ActiveWorkbook.Sheets("Database").Range("A803:I803").Value = ActiveWorkbook.Sheets("Flowchart").Range("G29:O29").Value
ActiveWorkbook.Sheets("Database").Range("A804:I804").Value = ActiveWorkbook.Sheets("Flowchart").Range("G30:O30").Value
ActiveWorkbook.Sheets("Database").Range("A805:I805").Value = ActiveWorkbook.Sheets("Flowchart").Range("G31:O31").Value
ActiveWorkbook.Sheets("Database").Range("A806:I806").Value = ActiveWorkbook.Sheets("Flowchart").Range("G32:O32").Value
ActiveWorkbook.Sheets("Database").Range("A808:I808").Value = ActiveWorkbook.Sheets("Flowchart").Range("G34:O34").Value
ActiveWorkbook.Sheets("Database").Range("A810:I810").Value = ActiveWorkbook.Sheets("Flowchart").Range("G35:O35").Value
ActiveWorkbook.Sheets("Database").Range("A811:I811").Value = ActiveWorkbook.Sheets("Flowchart").Range("G36:O36").Value
[COLOR="Lime"]'First New Permit Data Added
'Clear input data on flowchart but save data that was updated on database
'Find out how to keep the flowchart input ranges the same, but move down to next table on database[/COLOR]
End Sub