+ Reply to Thread
Results 1 to 10 of 10

VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Hi all,

    I am having issue creating some vba code for following formula:

    Column A (Software) | Column B (Formula)

    Adobe Acrobat 9 Standard | Adobe Pro
    Adobe Acrobat X Pro - English, Français, Deutsch | Adobe Pro
    Dreamweaver11 | Not required
    Microsoft Office Professional Plus 2013 | Office Pro
    Microsoft Office Project Standard 2010 | Project
    Microsoft Office Standard 2010 | Office Std
    Microsoft Office Standard 2013 | Office Std
    Microsoft Office Visio 2010 | Not required
    Microsoft Project Standard 2010 | Project
    Microsoft Project Standard 2013 | Project
    Microsoft Visio Professional 2010 | Visio
    Microsoft Visio Viewer 2010 | Not required
    Microsoft Visio Viewer 2013 | Not required


    My code:

    Please Login or Register  to view this content.
    I seem unable to make it work.

    Please assist
    Last edited by dude6571; 03-29-2017 at 05:35 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Dude,
    Wrap your code with code tags. Please read forum's rule no 3.
    You need to put in any string in a double quote.


    Please Login or Register  to view this content.
    If it is null string

    """"

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Please Login or Register  to view this content.
    Last edited by dude6571; 03-21-2017 at 08:24 AM.

  4. #4
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    I now get error message: " Run Time Error 1004 'Application Defined or Object Defined Error' "

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    I am using Excel 2013

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    You are missing to wrap the entire formula in quotation mark since the formula is a string.
    I have not tested the code, so there might be some other errors.
    Like with and end with


    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Thanks for your reactive replies AB33, I seem able to make it worked as follows


    #############

    Please Login or Register  to view this content.
    #################

    Many thanks again for your tips
    Last edited by dude6571; 03-21-2017 at 08:23 AM.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Dude,
    You are welcome!
    Just add a dot before Range("B2:B" & LastRow).Formula.

    PS: You are going to get in trouble with moderators for not using code tags with your code.
    You can add code tags to your code: Go back to the post, click edit- select the entire code and click the pound sign from the menu (#)

  9. #9
    Registered User
    Join Date
    01-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013, 2016
    Posts
    95

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Not sure if I did right please confirm code tags

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code - IF(ISNUMBER(SEARCH("Adobe", $A4)),"Adobe Pro")

    Yes, you did it correctly.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. How to use VBA to automate Adobe Acrobat's "Import Data" process?
    By mockions in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2015, 02:48 AM
  3. 7 nested IF statements with a SEARCH added IF(ISNUMBER(SEARCH({"INSUR","AP REFUND"}
    By michaelproctor001 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2013, 02:13 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Replies: 6
    Last Post: 02-25-2013, 03:16 AM
  6. [SOLVED] "Save as PDF" exports to old version of Adobe
    By Zantax in forum Excel General
    Replies: 2
    Last Post: 10-26-2012, 03:02 AM
  7. Replies: 14
    Last Post: 10-19-2008, 08:38 AM

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