Skip to main content

WhatsApp Send By Excel

 

Excel Format

MobileNo Messages
919723475111 Test
919727715979 Test1
919904432168 Test3

 

Code For Excel  Module

 

Sub WhatsAppMsg()

Dim LastRow As Long
Dim i As Integer
Dim strip As String
Dim strPhoneNumber As String
Dim strMessage As String
Dim strPostData As String
Dim IE As Object

LastRow = Range("A" & Rows.Count).End(xlUp).Row

For i = 2 To LastRow
    
    strPhoneNumber = Sheets("Data").Cells(i, 1).Value
    strMessage = Sheets("Data").Cells(i, 2).Value
    
    'IE.navigate "whatsapp://send?phone=phone_number&text=your_message"
    
    strPostData = "whatsapp://send?phone=" & strPhoneNumber & "&text=" & strMessage
    Set IE = CreateObject("InternetExplorer.Application")
    IE.navigate strPostData
    Application.Wait Now() + TimeSerial(0, 0, 5)
    SendKeys "~"

Next i
    
End Sub
 

 

Comments

Popular posts from this blog

માતાજીના છંદ - અમીચંદ

  માતાજીના છંદ - અમીચંદ    અંબા મા તારું દર્શન દુર્લભ, દર્શનથી દુઃખ ભાંગે છે, અરજ કરી માને શીશ નમાવું, ધનભાગ્ય મારું આજે છે...   લક્ષ ચોર્યાશી ફેરા ફરીને, મનસા અવતાર ધરાવ્યો છે, ગુલામ તમારો આવ્યો મુસાફર, માયામાં લપટાયો છે...   કામ, ક્રોધ, મોહ, મત્સર, માયા દુર્મતિ પર ધાયો છે, લોભ લહેર એક નદીયા વહે છે, ઉસમેં જીવ દુભાયો છે...   તુમ બીના પાર ઉતારે કોણ મા, ભક્તને કે શિર ગાજે છે, અરજ કરીને માને શીશ નમાવું, ધનભાગ્ય મારું આજે છે...   કોઈ વખત જીવ જાયે ધરમ પર, માયા પાછી લપટાવે છે, આકીન અમારું રહેતું નથી, મારું પાપ મને અથડાવે છે...   હવે ઉપાય શું કરું માતાજી, હમકું કોઈ બતાવે છે, ચાકર બેઠો ચિત્તમાં તમારો, દિલમાં બહુ ગભરાવે છે...   મારી હકીકત તું સહુ જાણે, ઘટઘટમાં તું બિરાજે છે, અરજ કરી માને શીશ નમાવું, ધનભાગ્ય મારું આજે છે...   માન નિરંજન તું દુઃખભંજન, નિરધનને ધન આપે છે, વાંઝિયા હોય તેનું મેણું ટાળી, તેને તું ફરજંદ આપે છે...   ભક્ત કરે મા ભક્તિ તમારી, તેને તું દર્શન આપે છે, જન્...

SBI ATM Card Application Form - State Bank of India

Merge multiple excel files into a single spreadsheet (MS Excel 2007)

Merge multiple excel files into a single spreadsheet (MS Excel 2007) Recently I’ve got something to work on with several excel files. More than 150 excel files generated by a web based application have to be merged into one file and then create a summary from it. Usually i did this by doing copy paste all values one at a time into a new empty spreadsheet, or copy to merge sheets to another excel files one by one. But yesterday my friend show me a simple way to combine or merge multiple excel files with macros inside Excel 2007 (edit macros with MS Visual Basic editor and no download required). Although I’m not familiar with office macros, but i can use it easily by just write a simple xls file merger code on vb editor, change the working folder path and cell starter reference name inside the code to suit your reference, and then click RunSub. All excel (xls or xlsx) files inside working folder will be merged into current worksheet. Watch it on YouTube For more detail, here’s what ...