Results 1 to 5 of 5

IF statements in VBA

Threaded View

a8747 IF statements in VBA 09-03-2011, 05:56 AM
snb Re: IF statements in VBA 09-03-2011, 06:27 AM
a8747 Re: IF statements in VBA 09-03-2011, 09:03 AM
snb Re: IF statements in VBA 09-03-2011, 09:20 AM
a8747 Re: IF statements in VBA 09-03-2011, 10:34 AM
  1. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: IF statements in VBA

    Probably this suffices:

     
    Sub Send_Mail()
      sn=ActiveSheet.Buttons(Application.caller).TopLeftCell.Offset(,-2).resize(,2)
      With CreateObject("Outlook.Application").CreateItem(0)
        .To = sn(1,1) & "@email.com"
        .Subject = sn(1,2)
        .Send
      End With
     
      ActiveSheet.Buttons(Application.Caller).TopLeftCell.Offset(,1).Value = format(Now,"h: mm z")
    end sub
    Last edited by snb; 09-03-2011 at 06:30 AM.



Thread Information

Users Browsing this Thread

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

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