help with linkedin message macro

uppi28

New Member
Joined
Sep 3, 2012
Messages
1
Hi,

I am new to his forum and very happy to be here in Mrexcel as a member.

Would like to make a request who is expert to help me in Linkedin message macro.

I have few linkedin groups id where i need send them messages.
so here is the script which i got from one of my friend.

Sub LinkedInMsg()

Dim ie As Object
Dim sResult As String
Dim strURL As String
Dim dtTimer As Date
Dim lAddTime As Long

strURL = CStr(Sheets("Sheet1").Range("A1").Value)
Const lREADYSTATE_COMPLETE As Long = 4

Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate strURL

dtTimer = Now
lAddTime = TimeValue("00:00:20")

Do Until ie.readystate = lREADYSTATE_COMPLETE And Not ie.busy
DoEvents
If dtTimer + lAddTime > Now Then Exit Do
Loop

ie.Document.getElementByID("subject-msgForm").Value = Sheets("Sheet1").Range("B1").Value
ie.Document.getElementByID("body-msgForm").Value = Sheets("Sheet1").Range("C1").Value

End Sub

it does works in IE till the filling the content in the message subject and body. but it does not sends message and closed tab to switch to the next link.

I would appreciate if it is done in firefox or else IE is fine (but it is slow in progress)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,217,371
Messages
6,136,168
Members
449,996
Latest member
duraichandra

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