+ Reply to Thread
Results 1 to 2 of 2

Check HTML body empty in VBA

  1. #1
    Registered User
    Join Date
    08-29-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Check HTML body empty in VBA

    Hi. I have a vba code that I am using to check whether the HTML BODY tag of a page is empty or not.
    Empty page means following:
    - The page showing plain white in browser. view-source also shows plain white page.
    - The page showing plain white in browser. view-source shows some tags like SCRIPT, META tag inside BODY tag and no text.
    Tried running IsEmpty(response) to check if there is some response coming and result is False. That means there is something coming as response.

    Problem is that for some blank pages this is not working. The page shows plain white and view-source shows nothing but the IsEmpty(response) gives false. I tried iterating through the HTML response and using tagName property and it gives HTML, HEAD, BODY. But nothing visible. Tried removing the newlines, carriage return and space but not working.

    Here is the code:

    Please Login or Register  to view this content.
    Last edited by manishrana; 08-29-2016 at 03:08 AM. Reason: updated code

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,619

    Re: Check HTML body empty in VBA

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Emailing with HTML Body
    By cheeze83 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-07-2019, 02:01 AM
  2. [SOLVED] Vba to draft html body in outlook
    By arun.sj in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-15-2015, 07:37 AM
  3. Help needed to format email body to HTML
    By thaykhov in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-27-2015, 12:46 AM
  4. Edit email html body
    By kmakjop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2015, 09:43 PM
  5. CF Formatting in HTML Body of Email - Elaborate
    By ELeGault in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2014, 03:16 AM
  6. Excel ws into outlook html body with current html signature
    By Cadelanne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 09:03 AM
  7. Encode Text Of Body Of Email Into HTML
    By WJO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2012, 02:27 PM

Tags for this Thread

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