+ Reply to Thread
Results 1 to 2 of 2

Show / activate emailing button when needed

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Inverness, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    1

    Show / activate emailing button when needed

    I am teaching myself VBA and am not very familiar with it. I could use some help with my problem:
    I have got a button (which type to choose? I used Command button becouse of the code I found) which sends email with the attached active spreadsheet. I used code
    Please Login or Register  to view this content.
    It seems to be working well. The next step would be to have this button deactivated (or hidden) when A15 cell is blank. If the A15 cell is populated – the button with the macro (above) should be active (or visible). I am thinking about using found on the forum code:
    Please Login or Register  to view this content.
    but it hasn’t worked work for me so far. Maybe it’s not the proper one? Perhaps I am pasting the code in a wrong place? Any ideas (step by step) what code to use and how/where to place it, please?

    I found there are other VBA codes for sending emails. Mine seems to be quite tight. Is everything okay with it?

  2. #2
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Show / activate emailing button when needed

    You ideally will need to use the Change event not selection change
    event, and validate against A15 not A1.

    Using a forms type control button (name/change as required - currently "MyButtonName")

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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