+ Reply to Thread
Results 1 to 2 of 2

Using an IF statement in VBA - HELP

  1. #1
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Using an IF statement in VBA - HELP

    Hi All,

    I am really struggling with what I thought should be a straight forward Idea. I have a code to create and send an attachment that works over a range (this must be set, for ease of third party use). The code works well if an email address is present but when the range extends and their is no email address it creates blank emails. this is what I need to stop

    So if in the range I have two columns of data - I only need to create two emails and not two emails and loads of blanks.

    my thoughts were an if statement working through the range and if it had an email address then create email but if it were blank then skip to the next one.

    Any Idea's on how

    Please Login or Register  to view this content.
    Thanks
    Danny
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Using an IF statement in VBA - HELP

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  2. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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