JohnGow383
Board Regular
- Joined
- Jul 6, 2021
- Messages
- 141
- Office Version
- 2013
- Platform
- Windows
Hi.
I have two Google sheets in my spreadsheet. One named 'John' and the other 'Catch Log'. I want to run a script to copy and paste values from fixed ranges in Sheet1 (John) to the last available row in columns B, D & F in Sheet2 (Catch Log). Column A in Catch Log is populated with dates for many thousand rows and therefore when I attempt to use getLastRow it is returning the last row below the last data in Column A. I'm not sure how to use getLastRow for specific columns (as you would in VBA). To summerize criteria:
1) - Copy and paste Values of range 'D7' in Sheet 'John' to last row (or first available blank cell) in Column B.
2) - Copy and paste Values of range 'D25' in Sheet 'John' to last row (or first available blank cell) in Column D.
3) - Copy and paste Values of range 'D5' in Sheet 'John' to last row (or first available blank cell) in Column F.
I amnot familiar with Google Script and therefore any help with this will be much appreciated. Thanks
I have two Google sheets in my spreadsheet. One named 'John' and the other 'Catch Log'. I want to run a script to copy and paste values from fixed ranges in Sheet1 (John) to the last available row in columns B, D & F in Sheet2 (Catch Log). Column A in Catch Log is populated with dates for many thousand rows and therefore when I attempt to use getLastRow it is returning the last row below the last data in Column A. I'm not sure how to use getLastRow for specific columns (as you would in VBA). To summerize criteria:
1) - Copy and paste Values of range 'D7' in Sheet 'John' to last row (or first available blank cell) in Column B.
2) - Copy and paste Values of range 'D25' in Sheet 'John' to last row (or first available blank cell) in Column D.
3) - Copy and paste Values of range 'D5' in Sheet 'John' to last row (or first available blank cell) in Column F.
I amnot familiar with Google Script and therefore any help with this will be much appreciated. Thanks