Form in Excel to add a row on another Sheet in Workbook as well as adding a row on on Google Sheets

Excel_User_10k

Board Regular
Joined
Jun 25, 2022
Messages
100
Office Version
  1. 2021
Platform
  1. Windows
VBA Code:
Sub RectangleRoundedCorners2_Click()
    Dim myRow       As ListRow
    Dim cell        As Range, DataEntry As Range
    Dim i           As Long
    Sheets("Sales MTD").Unprotect Password:="password"
    With ThisWorkbook.Worksheets("Sales MTD").ListObjects("Submitted_Sales")
        Set myRow = .ListRows.Add(AlwaysInsert:=True)
    End With
    Set DataEntry = Range("N3,I13,J13,G6,F6,M5,K13,Q5,E13,F13,M8,Q8,F18,M10,Q10,H18,M12,Q12,J18,M14,Q14,Q16")
    For Each cell In DataEntry.Cells
        i = i + 1
        myRow.Range(i) = cell.Value
    Next cell
   
    myRow.Range(i).NumberFormat = _
    "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
    Worksheets("Sales MTD").Protect Password:="password", DrawingObjects:=True, Contents:=True, _
                                      Scenarios:=True, AllowDeletingRows:=True, _
                                      AllowFiltering:=True
End Sub

Currently I am using this code, courtesy of Dave, that Submits an 'order' from one Sheet and adds the Row to a table on another Sheet in the same Workbook.

I would like for it to be able to ALSO add a row on an identical Table on Google Sheets so it can be shared and viewed by others as well. I believe it is possible, and only with VBA, but I have no clue how to execute it.

Can someone help with this please?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top