Results 1 to 4 of 4

Return Blank instead of False

Threaded View

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Post Return Blank instead of False

    Hi,

    I have this code

    Private Sub AttachButton_Click()
    
        Dim vaFiles As Variant
    
        vaFiles = Application.GetOpenFilename()
      
        TextBox1.Text = vaFiles
    If i press cancel, the TextBox1 is populated with 'False' . This creates a problem when i try to attach the file to Outlook, as it cant find the file path. So i need to return "Blank" (nothing at all) when cancel is pressed.

    Any suggestions?
    Last edited by vlady; 11-05-2012 at 08:33 PM.

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