Dear,
I would like to use the existing VBA from the Booking sheet directly to the Data Sheets and Admin to write all data to each Sheet.
kindly request,
Edb
Dear,
I would like to use the existing VBA from the Booking sheet directly to the Data Sheets and Admin to write all data to each Sheet.
kindly request,
Edb
I have adjusted the formula so that it now works with what my question was about
Sub data_Booking()
With Sheets("Data").ListObjects(1)
.ListRows.Add
.DataBodyRange.Cells(.ListRows.Count, 1).Resize(, 38) = Array([Q7].Value, [Q11].Value, [Q13].Value, [Q15].Value, [Q17].Value, [Q21].Value, [Q19].Value, [Q23].Value, [D9].Value, [D11].Value, [D13].Value, [D15].Value, [D17].Value, [D19].Value, [D21].Value, [D23].Value, [D25].Value, [D27].Value, [D29].Value, [D31].Value, [k9].Value, [K11].Value, [K13].Value, [K15].Value, [K17].Value, [K19].Value, [K21].Value, [K23].Value, [K25].Value, [K27].Value, [K29].Value, [K31].Value, [Q25].Value, [Q27].Value, [Q29].Value, [Q31].Value, [Q33].Value, [Q35].Value)
End With
With Sheets("Admin").ListObjects(1)
.ListRows.Add
.DataBodyRange.Cells(.ListRows.Count, 1).Resize(, 38) = Array([Q7].Value, [Q11].Value, [Q13].Value, [Q15].Value, [Q17].Value, [Q21].Value, [Q19].Value, [Q23].Value, [D9].Value, [D11].Value, [D13].Value, [D15].Value, [D17].Value, [D19].Value, [D21].Value, [D23].Value, [D25].Value, [D27].Value, [D29].Value, [D31].Value, [k9].Value, [K11].Value, [K13].Value, [K15].Value, [K17].Value, [K19].Value, [K21].Value, [K23].Value, [K25].Value, [K27].Value, [K29].Value, [K31].Value, [Q25].Value, [Q27].Value, [Q29].Value, [Q31].Value, [Q33].Value, [Q35].Value)
End With
t = Range("AA7")
Range("Q9,Q11,Q13,Q15,Q19,Q17,Q21,D9,D11,D13,D15,D17,D19,D21,D23,D25,D27,D29,D31,K9,K11,K13,K15,K17,K19,K21,K21,K23,K25,K27,K29,K31,Q23,Q27,Q25,Q29,Q31,Q33,Q35").ClearContents
' reset booking row
Range("Q44").Value = ""
Range("AA7") = t + 1
End Sub
@Edria
As for the hidden code I can't help you with that because I too could not find it. If this was my file I would make a completely new "Booking" sheet, but that's just me.
I have attached my revision of your file so you can review the code. On the "Booking" sheet I updated the button and assigned my new macro (Data_Booking_2) to it. (the original macro assigned wouldn't run). I also updated the buttons on the "Data" and "List" sheets; removed the hyperlink and assigned the macro directly to the buttons. On the "Data" and "Admin" sheets you will see a number of tests I did.
The code which would clear the "Booking" sheet is commented out. If you choose to use this code un-comment the ClearContents code of your choice.
Cheers :-)