VBA Copy Paste to Sharepoint

ChoPaeng

New Member
Joined
Dec 4, 2017
Messages
5
I need the masters help on this!

I want to automate our team attendance.

I have J5:J14 in my sheet where I want to copy and paste to the SharePoint's existing list.

There are 5 columns on the SharePoint's existing list and only 2 columns will be filled out.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Re: [HELP VBA EXCEL] Copy Paste to Sharepoint

it sounds like you want to copy from one workbook and paste to another... more details would be needed for the actual code but here is an example...

Code:
Sub CopyPaste()
    Dim workbookCopy As Workbook, workbookPaste As Workbook
    Dim sheetCopy As Worksheet, sheetPaste As Worksheet

    'declare workbooks
    Set workbookCopy = Workbooks("CopyFrom.xlsx") 'workbook must be open in excel, edit the name
    Set workbookPaste = Workbooks("PasteTo.xlsx") 'workbook must be open in excel, edit the name

    'declare sheets
    Set sheetCopy = workbookCopy.Sheets("Sheet1") 'edit name
    Set sheetPaste = workbookPaste.Sheets("Sheet1") 'edit name

    'copy/paste
    sheetCopy.Range("J5:J14").Copy sheetPaste.Range("A1") 'edit where you want to paste

End Sub
 
Last edited:
Upvote 0
Re: [HELP VBA EXCEL] Copy Paste to Sharepoint

we are using a SharePoint for our team to measure our Short Breaks and Lunch Breaks. I have my stopwatch running and what should happen is when the stopwatch resets, the data will be added to the SharePoint (not another workbook).
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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