VBA write info to google spreadsheet

auto

Board Regular
Joined
May 20, 2012
Messages
53
hi, everyone
hope i can get here an answer :)
i am surfing around the web all over to check for a solution, but i cant get anywhere, maybe someone here can help me
i have an excel sheet which has a macro doing some stuff with the data in it, and i want when the sub is finishing the work to get out two values from two different ranges and paste it into my google spreadsheet.
now i started with some code but i am missing something, i will share here my code, maybe someone can tell why its not working.

Code:
[COLOR=#222222][FONT=Verdana]Sub test()[/FONT][/COLOR][/FONT][/COLOR]
' this is to test if it can write into my spreadsheet'
Dim a As String
a = "testing"
Dim Mysite As Object

Set Mysite = CreateObject("WinHttp.WinHttpRequest.5.1")
Mysite.Open "POST", "https://docs.google.com/spreadsheet/pub?key=0AvtzA1pEG-VWdDJnZ0prckJMZmotMWM1TUFtOGdPRFE&output=html", False
Mysite.send a

'Check result
MsgBox Mysite.Status
MsgBox Mysite.statusText


[COLOR=#2A2A2A][FONT=Segoe UI][COLOR=#222222][FONT=Verdana]End Sub[/FONT][/COLOR][/FONT][/COLOR]


can anyone help me please?
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

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