I am posting here again and need very much working and specific codes for making a VBA macro for copying some specific cells from one worksheet to another using one button.
Here you can see my current invoice format -
And here is the Database sheet -
Problem here is - Using the New Invoice button, I want to move to a new invoice while the data from specific cells, Invoice#, Order#, Sale#, Date#, Client's Name, Subtotal, Order Type, will be copied or moved from Invoice sheet to Database sheet. Also, the contents of these cells will be cleared as well.
I have the code for clearing contents and adding new invoice number -
Sub NewInvoice()
Range("H8").Value = Range("H8").Value + 0.00001
Range("D8:D10").ClearContents
Range("C13:C23").ClearContents
Range("H9:H10").ClearContents
Range("H25:H27").ClearContents
UserForm1.Show
End Sub
I need to add the codes for copying data from one worksheet to another worksheet inside this same code, for the specific cell data.
I hope I could explain my situation here.
Waiting for your reply and thank you for your time and consideration.
With regards Imran