Please verify if this is possible...
I have a team of 5. We each have local excel files we use as project trackers. We want to collaborate on a high level using a master project tracker in Excel Online on OneDrive but individually continue to use our local trackers to update more detailed information on each project.
I understand Excel Online cannot run macros. But is it possible for our local files to each run a macro that copy and pastes our weekly project updates automatically to this master tracker in Excel Online?
I have not found anything on this. I am wondering if this is even possible to do or if anyone has a better solution than this for what we need.
Below is code to copy and paste from one workbook to another. How can this be altered to copy and paste to an Excel Online Workbook? If this is even possible.
Sub Copy_Paste_Below_Last_Cell()
'Find the last used row in both sheets and copy and paste data below existing data.
Dim wsCopy As Worksheet
Dim wsDest As Worksheet
Dim lCopyLastRow As Long
Dim lDestLastRow As Long
'Set variables for copy and destination sheets
Set wsCopy = Workbooks("New Data.xlsx").Worksheets("Export 2")
Set wsDest = Excel Online Workbook
'1. Find last used row in the copy range based on data in column A
lCopyLastRow = wsCopy.Cells(wsCopy.Rows.Count, "A").End(xlUp).Row
'2. Find first blank row in the destination range based on data in column A
'Offset property moves down 1 row
lDestLastRow = wsDest.Cells(wsDest.Rows.Count, "A").End(xlUp).Offset(1).Row
'3. Copy & Paste Data
wsCopy.Range("A2:D" & lCopyLastRow).Copy _
wsDest.Range("A" & lDestLastRow)