I am a beginner using VBA.
I want to copy and paste a value to another sheet in the first blank cell in a specific range.
For instance Sheet 1 is a general ledger:
Cell F14 contains text (either Rent, or Cash, or Accounts Receivable etc.)
Cell K14 contains the Debit Amount. Cell l14 contains the Credit amount.
I want to copy and paste the amount in either K14 or K15 to sheet 2 in a specific range using the next available cell based upon the text in F14.
If it "Cash" then the range = sheet2 D1:D10. If Rent then paste to range sheet2 D20:D30 etc.
Any help would be appreciated.