Closed Thread
Results 1 to 20 of 20

Excel VBA To Web.whatsapp.com

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 64bit
    Posts
    48

    Excel VBA To Web.whatsapp.com

    Hi,

    I have found the vba code to send messages via https://web.whatsapp.com, the vba code send messages from textbox but the code is incomplete, it doest not search and match the exact contact list, meaning it will send to all people with same surname, i have below questions, hope someone can enlighthen me:

    1. how to search and select contact list in https://web.whatsapp.com and match the exact name only, or match phone number?

    2. send customized messsages based on messages and contact list in cell value, eg. A1 = contact list, B1 = customomized massages

    3. how to insert and send jpeg picture as attachment?

    Attached is the vba file.

    Thank you so much for your help.
    Attached Files Attached Files

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel VBA To Web.whatsapp.com

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 64bit
    Posts
    48

    Re: Excel VBA To Web.whatsapp.com

    Hi

    Sorry for the mistake, i actually wanted to post this question in vba forum, but made a mistake posted here, i tried to delete this post from here but cant find any delete button

    Can you pls advise how to remove this post ? Sorry for any inconvenience caused

    Thanks

  4. #4
    Registered User
    Join Date
    11-05-2011
    Location
    Quetzaltenango, Guatemala
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Excel VBA To Web.whatsapp.com

    If you do not have the registered contact you can not send message, and you can register it in google contacts, but for the recipient you can use the number and not the name.

  5. #5
    Registered User
    Join Date
    03-06-2018
    Location
    Singapore
    MS-Off Ver
    2011
    Posts
    1

    Re: Excel VBA To Web.whatsapp.com

    Have you managed to get it work?

  6. #6
    Registered User
    Join Date
    07-09-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 64bit
    Posts
    48
    Quote Originally Posted by calebseah View Post
    Have you managed to get it work?
    Not yet. I have been searching for it very long but no solution yet.

    I think not viable to do it using vba

    Thanks

  7. #7
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Excel VBA To Web.whatsapp.com

    Hi All,

    PFA a file which can help you to send whatsapp from excel using VBA code. The code is basically a joint effort of various people whose code was found on internet and whatever I could do to append the same to meet the purpose.
    The code is not very robust but still somehow meeting the purpose so if anyone feels they have a solution to overcome shortcoming, please do share back.
    Share your experiences as well !!

    Thanks
    Ravi

    Steps to use are listed below.
    1. Download and save template
    2. Replace the Col A and Col B with Contact number ( Mandatory ) and Contact Name ( optional )
    3. Write your general message in C1
    4 Save the file
    'this is to open your whatsapp web manually
    5.Open Chrome
    6. Open whatsapp web and log in manually

    7 Come back to excel and click send Whatsapp button.

    8 System will as you with a popup message that whether whatsapp is loaded or else. ( this is introduced since in testing sometime whatsapp web was not loaded and the script started running causing mess !!)

    9. CAUTION HERE !!! - YOU HAVE TO MANUALLY COME BACK TO YOUR CHROME TAB WHERE WHATSAPP WEB IS OPEN AND LEAVE THE SYSTEM WITHOUT TOUCHING !!!
    10 . AGAIN !! WHILE THE SCRIPT RUN, DO LEAVE THE SYSTEM IDLE !!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-09-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 64bit
    Posts
    48

    Re: Excel VBA To Web.whatsapp.com

    Ravisca2003 ,
    Thank you so much for sharing, appreciate your help.

    Tested the code, not working, no respond after the prompt "is whatsapp loaded, click no to cancel".

    Just one more question, can sendkeys function send picture from folder to whatsapp as well? eg. i have picture url path in column C.

    Thanks
    Last edited by chhiew; 08-21-2018 at 09:07 PM.

  9. #9
    Registered User
    Join Date
    05-02-2018
    Location
    cairo
    MS-Off Ver
    2010
    Posts
    6

    Re: Excel VBA To Web.whatsapp.com

    Dear Ravisca ,
    this is working great , thank you
    but i need to add attachment do you have any idea?

  10. #10
    Registered User
    Join Date
    06-01-2017
    Location
    Chennai,India
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Re: Excel VBA To Web.whatsapp.com

    Hi,

    Please help me.

    I have download file and replace contact number and message but the message is not sent.

    Regards
    Helen

  11. #11
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Excel VBA To Web.whatsapp.com

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Please familiarise yourself with the rules before posting. You can find them here.

  12. #12
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72
    Quote Originally Posted by chhiew View Post
    Ravisca2003 ,
    Thank you so much for sharing, appreciate your help.

    Tested the code, not working, no respond after the prompt "is whatsapp loaded, click no to cancel".

    Just one more question, can sendkeys function send picture from folder to whatsapp as well? eg. i have picture url path in column C.

    Thanks
    Hi there,
    Please see point number 9 in my post.wait untill web.whatsapp.com is loaded and u r properly logged in. Once it is.done, you have to click YES. On the message whether WhatsApp loaded or else.

    Now here is the catch.

    Immediately after u press YES , U HAVE TO COME BACK MANUALLY TO THE BROWSER TAB IN WHICH WHATSAPP IS LOADED.

    Just to explain u more so that I understand, when u press YES to respond to the message, system passes the active control to this VBA object and could not go back to the WhatsApp window hence user have to intervene manually to do that and that too immediately.

    Further send keys can also attach but currently the code does.not.support attachment. If u have any solution to make WhatsApp pick the attachment file as well, I am happy to hear from you as it is something I could.not.get right.

    Sorry for typos. Sent from handheld

    Good luck.

  13. #13
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72
    Quote Originally Posted by HelenDevanatha View Post
    Hi,

    Please help me.

    I have download file and replace contact number and message but the message is not sent.

    Regards
    Helen
    I Helen please follow the steps after checking them once again. Also read my reply to other user as well.

    I think you are missing some manual intervention here otherwise the code worked so far so good with most of thwm to.whom I shared.

  14. #14
    Registered User
    Join Date
    08-19-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Excel VBA To Web.whatsapp.com

    Quote Originally Posted by Ravisca2003 View Post
    Hi All,

    PFA a file which can help you to send whatsapp from excel using VBA code. The code is basically a joint effort of various people whose code was found on internet and whatever I could do to append the same to meet the purpose.
    The code is not very robust but still somehow meeting the purpose so if anyone feels they have a solution to overcome shortcoming, please do share back.
    Share your experiences as well !!

    Thanks
    Ravi

    Steps to use are listed below.
    1. Download and save template
    2. Replace the Col A and Col B with Contact number ( Mandatory ) and Contact Name ( optional )
    3. Write your general message in C1
    4 Save the file
    'this is to open your whatsapp web manually
    5.Open Chrome
    6. Open whatsapp web and log in manually

    7 Come back to excel and click send Whatsapp button.

    8 System will as you with a popup message that whether whatsapp is loaded or else. ( this is introduced since in testing sometime whatsapp web was not loaded and the script started running causing mess !!)

    9. CAUTION HERE !!! - YOU HAVE TO MANUALLY COME BACK TO YOUR CHROME TAB WHERE WHATSAPP WEB IS OPEN AND LEAVE THE SYSTEM WITHOUT TOUCHING !!!
    10 . AGAIN !! WHILE THE SCRIPT RUN, DO LEAVE THE SYSTEM IDLE !!
    Hi Ravi,
    Thanks a lot for this, It works Great.
    I just want to know is there a way i can send a customised message.

    I actually want to send message to my co employees their respective timings. I will put in their In time and Out time in a column and would want the VBA Script to load the timings from there. Also I will want to notify them about the project on which they will be working.

    Eg :
    The message would be sent like "Hi Jessica , Today's Schedule Work on Bathroom design 3:00 pm to 5:30 pm and then Ceiling Decoratives 5:45 pm to 7:45 pm.

    Here I would keep Bathroom design and Ceiling decoratives in two cells and intime outtime in another cell.

  15. #15
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Excel VBA To Web.whatsapp.com

    HelenDevanatha,
    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

  16. #16
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Excel VBA To Web.whatsapp.com

    ratneshpathak12,
    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.


    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

  17. #17
    Registered User
    Join Date
    09-27-2018
    Location
    span
    MS-Off Ver
    mac
    Posts
    6

    Re: Excel VBA To Web.whatsapp.com

    Hello, I use this Excel file to send WhatsApp messages and this runs very well.
    Do you know any configuration to send a file with this excel in WhatsApp?
    Thank you

  18. #18
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Excel VBA To Web.whatsapp.com

    Hi There,

    Yes you can do that with my new version. I have created 4 Variables col. in which you can write your variable texts and send it to your users. I have been using it like that for a while.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Excel VBA To Web.whatsapp.com

    Quote Originally Posted by ratneshpathak12 View Post
    Hi Ravi,
    Thanks a lot for this, It works Great.
    I just want to know is there a way i can send a customised message.

    I actually want to send message to my co employees their respective timings. I will put in their In time and Out time in a column and would want the VBA Script to load the timings from there. Also I will want to notify them about the project on which they will be working.

    Eg :
    The message would be sent like "Hi Jessica , Today's Schedule Work on Bathroom design 3:00 pm to 5:30 pm and then Ceiling Decoratives 5:45 pm to 7:45 pm.

    Here I would keep Bathroom design and Ceiling decoratives in two cells and intime outtime in another cell.
    Hi There,
    Please check this thread. I have uploaded a new version today but somehow I cannot link a file to this reply. SOrry for the confusion and added trouble but what you need is doable with my new version attached.

  20. #20
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Excel VBA To Web.whatsapp.com

    @eulices31 Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Whatsapp Contact filter
    By lulupatel in forum Excel General
    Replies: 10
    Last Post: 10-14-2014, 03:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1