Using Excel Active X to Find a String within a column

I am trying to use ActiveX functions to search for a string within a specific column in excel. And return the row index of that string if a match occurs. Any help on that will be appreciated. I used Read then Compare for each cell in that column, but it is too slow. Maybe a search will be faster.

Here are some Vi's that will allow you to do a "find" just like doing the edit find function in excel. There is also a vi in there to do a search and replace.
Joe.
"NOTHING IS EVER EASY"
Attachments:
replace.llb ‏117 KB

Similar Messages

  • When using Excel "microsoft Office" I find on my desktop files that I am unable to task, move or relocate.  How can I get rid of them ? on my desktop files that I cannot trash, move

    I find files onmy desktop that I am unable to move ,trash or relocate.  How can I clear my desktop?

    Ongoing problem with Excel on Macs - it's been around since at least 2004 or earlier. For some reason some of the temporay files don't get deleted when you save.
    Re-launching Finder sometimes works, but otherwise restart.

  • Find a string within a field

    This may be easy but I am new to this so here it goes.  I am trying to find if a string can be found in a mysql database field.
    The following will only find exactly match
        <CFQUERY DATASOURCE="databasename">
        SELECT mycontact, userid
        FROM mytable
        WHERE email = #form.email#'
        </CFQUERY>
    The following will return result if the field email is contain in the form.email
        <CFQUERY DATASOURCE="databasename">
         SELECT mycontact, userid
         FROM mytable
         WHERE email like '%#form.email#%'
        </CFQUERY>
    But these will not give what I want.  I want the reverse of the above.  The email fied can contain MORE than one email addresses.  I want to be able to enter a value i.e. form.email and search the table and find any record in the "email" field that contain form.emal.  Help is appreciated.  I am using MYSQL database.  Thanks.

    FIRST OF ALL
    Everybody is right, fix the darn database.
    SECOND OF ALL
    Problem 2 is why you have the four cases.
    WHERE
    email = '#form.email#' 
    this finds the case where there is one email in the field
    OR email like '%,#form.email#,%'
    this finds emails in the middle of a list.  By putting the comma's in your search prevents [email protected] from matching [email protected] because you are searching for ,[email protected],
    OR email like '%,#form.email#'
    This finds the email if it is at the end of a list, including the comma in the search for the same reason as the previous case.
    OR email like '#form.email#,%'
    And finally find the email if it at the beginning of a list.
    Message was edited by: ilssac Hopefully you can understand this with the stupid forum making all the 'emails' into links including the silly envelope icon.

  • Sql query for finding a string in a column of a table

    Hi All,
    I have an issue, I have gotten a string ie '1D USD PRIME' and I have access to oracle's dictionary tables and views such as (all_source, all_tab_cols etc), my requirement is to find which table' column holds my above mentioned string, so I mean both the table name and the column name, it could be that this string might exist in more than 1 table so I want all the tables that holds it.
    Regards
    Rahul

    Hi All,
    I think you misunderstood my question, so may be I didnt ask it properly, so here it is I am explaining in detail with an example.
    Suppose I have 10 users with 10 different user name's in a database and I am the 11th user as DBA, every 10 of these users have created some tables lets say 20 tables each by every user making a count of the total tables as 200, now lets say 10 of 200 tables has a column ie fname with value as 'rahul', I want to search the string 'rahul' from all the 200 tables that which of the tables contains this string along with the column name.
    I hope this time my question is clear, the point is I just know of a value and I dont know the table name and column name where it may actually residing, futher I want to search tables of other users as well.
    Regards
    Rahul

  • Find exact string using formula (excel)

    I'm trying to use FIND statement to find multiple strings in the context of a larger formula. The original formula I'm basing it off of is as follows:
    =IF(ISNUMBER(FIND("INC",A1))," ","Y")
    Obviously, this yields a Y if it finds whatever text in " ". However, I have many strings for which I'd like to check and they need to be exact; ie when I search INC and inc, I do not want Inc to be counted. So, I tried the following formulas.
    =IF(ISNUMBER(FIND(OR("INC",inc"),A1))," ","Y")
    =IF(SUM(COUNTIF(A1,"* INC*","* inc*}))," ","Y")
    The second one works best, but it also counts "Inc" as a match. Any suggestions?

    bk284,
    Well you've posted to the wrong forum as this forum is dedicated to questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. However, your question is simple enough that I'll just take a shot at helping.
    Try the LOWER function, it converts a text string to lower case so the upper case, lower case issue goes away.
    If this answered your question, please mark it as the answer.
    In the future, for Excel related questions, use this forum: http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    John

  • How to find a string inside Excel table

    Hi,
    I am trying to find a string inside Excel table, and it does not work. Please see attached figure. I use the find Invoke Node and do not get anthing.
    Please help
    Attachments:
    find_excel.JPG ‏21 KB

    See attached files.
    Thanks,
    David
    Attachments:
    Excel_table.xls ‏15 KB
    Read_XL.vi ‏42 KB

  • Return String from Oracle stored proc using Excel 2003 VBA

    Hi to everyone,
    I've got a problem that remains unsolved for many days. I am trying to return a value of an oracle stored procedure using Excel VBA. It might seem trivial, however it's not for someone, who has never done it before...
    OS: Win XP SP3
    Excel 2003
    Ora Client: 11g
    By trying different things I have noticed, that I could have troubles with the ODBC-connection. Maybe I am not using the right one. To store data returned from select statements I have an ODBC-Connection (Driver: Oracle in XE), which works perfectly, e.g.:
    Sub Extract_Data()
    Dim cn As ADODB.Connection
    Dim rs As ADODB.Recordset
    Dim db_name, UserName, Password As String
    cn.Open db_name, USerName, Password
    sql_statement = "SELECT some_text FROM some_table"
    Set rs = cn.Execute(sql_statement)
    rs.MoveFirst 'jump to the first entry in the data list
    Row = 2
    While Not rs.EOF
    'save the data to a worksheet
    ip.Cells(Row, 2) = rs(0).Value
    Row = Row + 1
    rs.MoveNext
    Wend
    End Sub
    Now I need to execute a stored procedure to return a semi-colon delimited string.
    I have tried the following:
    Public Sub obj_class()
    Dim cn As New ADODB.Connection
    Dim strSQL, cn As String
    Dim adoCMD As ADODB.Command
    Dim adoRS As ADODB.Recordset
    Set wb = Excel.ActiveWorkbook
    Set ih = wb.Sheets("InfoSheet")
    cn.Open db_name, UserName, Password
    Set adoCMD = New ADODB.Command
    With adoCMD
    .ActiveConnection = cn
    .CommandText = "S#mdb$stg_da_extr_util.get_all_classes_of_classif"
    .CommandType = adCmdStoredProc
    .Parameters.Refresh
    '------ and here comes the error saying:
    '------ could not find the object in the collection corresponding to the name or ordinal reference requested by the application
    .Parameters("i_caller").Value = "'STG_DATA_REQUEST'"
    .Parameters("i_obj_classif_id").Value = 120
    Set adoRS = .Execute()
    End With
    End Sub
    I did asked on the forum:
    http://www.access-programmers.co.uk/forums/showthread.php?p=1241667#post1241667
    but unfortunately without success.
    Could it be, that my ODBC-connection is wrong? When debugging the connection string, I find the Provider=MSDASQL5.1.
    I have moderate knowledge in VBA, but absolutely a newbie with Oracle DB. Is there any source of information that can help solving this issue? Looking forward to hearing from you, as I am almost giving up... ;(

    My VBA is super rusty. Does that error come after Parameters.Refresh, or after .Parameters("i_caller").Value = "'STG_DATA_REQUEST'"?
    If it's the second one, you'll need the definition of the stored procedure so you can see what parameters it's expecting. That'd mean you're getting something wrong with the names.

  • Using Regex to find a string

    Is it viable to use regular expressions with Search "Specific Tag" (i.e.script) "With Attribute" (i.e. src) and "=" a regex string rather than an exact search term?  The Find / Replace tool seems to prevent a simple wildcard find (i.e. "searchter* for searchterm) Any insight would be appreciated.

    uneAaron wrote:
    I'm trying to replace a script source value for all instances where the value contains the string "/bbcswebdav/xid-144702_1", where the string "xid-" is followed by a different numerical value in each instance.
    The regex for finding that string is:
    \/bbcswebdav\/xid\-[\d_]+
    The numerical value contains an underscore, so the final section ( [\d_]+ ) uses a range that selects one or more numbers and/or underscores.
    Perhaps as important as identifying what you want to find is specifying how you want to replace it. Regexes can have capturing groups that can be used in the Replace field to simplify matters.

  • Using Excel on new Mac. I lost tab within a file? Any way to find?

    We are doing our taxes and using Excel on new Mac. We lost a tab within a file! Hours of work. Anyway to find this tab? Also, how to we find the trash to check in there? Thanks so much!

    You should contact Microsoft for Mac Support  and/or post in their forums.

  • How find all un-used/in-active ASA rules

    Hello,
    I am tasked to identify all un-used, in-active, and idle rules in Cisco ASA firewalls.
         I have access to CSM. But in CSM, I do not know how create such a report. I would be grateful if someone can help to create such a report. 
         If CSM does not support such a report, I will be grateful if someone can help to use CLI to figure out such rules.
    thanks in advance
    Bo              

    Hi,
    Do u mean the ACL rules which is inactive/idle for a long time????
    If it is ACL rules then sh access-list | in (hitcnt=0) and check. But this may not conclude that it is invalid. Because the endusers uses that flow on a rare cases also. Be sure on this one.
    for interface ACL's you can check sh access-group and check how many ACL's configured and used on interfaces.
    If it is used for VPN or NAT then you need to check NAT configurations and VPN configurations with the rule name.
    Or best way you can take the sh run and find ACL name which is used or not used. like if it is an valid ACL then apart from the ACL lines it should be mapped somewhere either in access-group/NAT/VPN configs.
    By
    Karthik

  • Using RME baseline templates to find non-compliant SNMP strings

    Running LMS3.2.1
    A. Can I run a compliance check using RME baseline template to find devices which have non standard SNMP strings IN ADDITION to the correct one?
    How will the regular expression look like if we want to say
    + snmp-server community cisco123 ro
    + snmp-server community cisco456 rw 1
    - snmp-server community [anything else] ro
    - snmp-server community [anything else] rw [#.*#]
    B. Is it possible to run a clean up job on the violating devices by using DEPLOY (or NetConfig, etc.)?

    - [#snmp-server community (?!cisco123|cisco456).*#]
    + snmp-server community cisco123 RO
    + snmp-server community cisco456 RW
      From the compliance job result GUI, you can deploy the job directly after verifying the results.  When you deploy this template, it will remove any community that does not match "cisco123" or "cisco456", and then add them if the device does not already have them.

  • Using Excel VBA to save PDF file as a text (plain) file?

    I'm using 8.0 Acrobat Pro.
    Third party apps are not an option (I'm restricted from installing anything on my office PC).
    I could simply save each PDF manually, but given the number of files this would not be practical.
    The text it will output does not have to be pretty by any means (and I'm aware it won't be).
    As long as I can get the PDF files in a text file format, there would be no further obstacles for me - because I would then be able to get Excel to gather-import all the data and consolidate-clean-organize everything accordingly at that point.
    What's in these PDF files are simply names, numbers, and email addresses (basic office text type data stuff simple).
    I wish to save them all as text files, and then use Excel to suck all the data from those newly created text files and consolidate-organize them accordingly.
    The VBA module I've seen referrenced around the web is the following beneath; however, I am having no luck with it.
    I keep getting the error message:
    ActiveX component can't create object or  return reference to this object (Error 429)
    I am running Microsoft Office 2010 | Excel (and using Adobe Acrobat Pro 8.0).
    Any help is extremely appreciated.
    Here is the VB code in Excel I'm having trouble with:  What this is supposed to do is simply find the specified PDF file and save it as a Plain Txt File.
    Sub Convert_PDF_To_Text_File()
    Dim AcroXApp As Object
    Dim AcroXAVDoc As Object
    Dim AcroXPDDoc As Object
    Set AcroXApp = CreateObject("AcroExch.App")
    AcroXApp.Hide
    Set AcroXAVDoc = CreateObject("AcroExch.AVDoc")
    AcroXAVDoc.Open strPDFPath, "Acrobat"
    AcroXAVDoc.BringToFront
    Set AcroXPDDoc = AcroXAVDoc.GetPDDoc
    Dim jsObj As Object
    Set jsObj = AcroXPDDoc.GetJSObject
    jsObj.SaveAs strOutputFile, "com.adobe.acrobat.plain-text"
    AcroXAVDoc.Close False
    AcroXApp.Exit
    End Sub

    one other thought is that you can create text files with a batch process inside of acrobat.  Advanced ---> Document Processing ----> Batch Processing.
    Choose new sequence, give it a name
    Step 1: Select Commands ----> Choose "execute javascript", then hit "Add."  Click on "Execute Javascript" that was just added on the right, then hit the edit button and toss in the script below that I grabbed from the javascript samples (also, if your docs have multiple pages you'll need to embed the for loop into another for loop that cycles through each page).  You'd also want to change the name of the saved txt file to the name of pdf you're doing it to.  It shouldn't be that hard, but I'm guessing you're probably alot more familiar with VBA then javascript which is why you're choosing to do it from excel.  I'm kind of in the same boat of having written a bunch of VBA, but not much javascript.  I highly recommend investing some time into learning acrobat scripting b/c VB does have it's limitations when it comes to messing with PDF's.
    * function to extract the text content of the current page and save to a file.
    try  {
    var p = this.pageNum;
    var n = this.getPageNumWords(p);
    app.alert("Number of words in the page: " + n);
    var str = "";
    for(var i=0;i<n;i++) {
    var wd = this.getPageNthWord(p, i, false);  
    if(wd != "") str = str + wd;  
    // save the string into a data object
    this.createDataObject("whatever.txt",str); 
    // pop up a file selection box to export the data
    this.exportDataObject("whatever.txt");
    // clean up
    this.removeDataObject("whatever.txt");
    } catch (e)  { 
    app.alert(e)

  • PowerShell script to find a string of characters in office documents in Doc Libraries and List Item attachments?

    Hi there,
    For SharePoint 2010 site - Does someone have the PowerShell script to find a string of characters in Office/Word/Excel/PDF documents in document libraries or the ones attached to List Items?
    Thanks so much in advance.

    Hi,
    According to your description, my understanding is that you want to find some specific string character in list items using PowerShell Command.
    $w = Get-SPWeb "http://devmy131"
    $l = $w.GetList("http://devmy131/lists/fieldslist");
    $i = $l.Items[0]["Title"].ToString();
    if ($i -like '*document*')
    Write-Host "Title contains document character" $i;
    More information:
    PowerShell -contains -like
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • [AS] Find a string of words in text

    Hello - hopefully someone can help as I'm now stuck on this. I want to be able to find a specific string of words within a text frame, though I want to be able to do this without using the Find Text Preferences approach.
    I can get it to work if i am just finding one word, but if there is more than one word it doesn't work.
    For example this works (given a text frame with text in that contains the word Example):
    tell application "Adobe Indesign CS5"
    tell active document
    set mybox to selected
      tell mybox
       set myfind to object reference of every word whose contents = "Example"
      end tell
    end tell
    end tell
    However the same does not work (searching for "The Example", which is two words)
    tell application "Adobe Indesign CS5"
    tell active document
    set mybox to selected
      tell mybox
       set myfind to object reference of every word whose contents = "The Example"
      end tell
    end tell
    end tell
    What i can't figure out is the correct phrasing for finding a string of words, i guess i should not be looking for the object reference of WORD, but nothing else i've tried seems to work. Many thanks for any help

    I think what John has said is correct… I only had a quick look in the dictionary terms. Without find/change the closest you may get is line or paragraph after that you would need to manipulate the line/para contents further… Word by definition I would think can't contain space but is encapsulated in space bar first/last…
    tell application "Adobe InDesign CS5"
    tell active document
    tell story 1
    set myfind to object reference of every word whose contents = "Example"
    end tell
    show text first item of myfind
    end tell
    end tell
    This would show the line you can then break down further…
    tell application "Adobe InDesign CS5"
    tell active document
    tell story 1
    set myfind to object reference of every line whose contents contains "For Example"
    end tell
    show text first item of myfind
    end tell
    end tell

  • How to find a string in SAP code

    Hello,
    Does anyone here know how I can find a string inside the SAP code efficiently? I tried finding a custom table name using the Where-used list feature but the results doesn't show the complete/correct results. It missed some user exits where the table name was also used.
    Please help

    Hello Jimmy,
    You can try what Krishna has said there is one more way that is
    goto trxn SE12,
    enter Z* in the table name field,
    it will give a popup box with all the Ztables found in your system...you can find your table maybe it is a little tedious job
    Sravani

Maybe you are looking for

  • Cannot delete turbotax from my trash can

    I installed turbotax, which did not work. Now I want to unistall it and it is my trash can I can not empty my trash at all....Help! I beleive it is because the file is corrupt or because it did not load properly...

  • My MacBook Pro won't go to sleep when I close it

    1. My MacBook Pro won't go to sleep when I close it and my fan runs all the time.  When I go to my activity monitor it show my mail program runing at between 98% and 153% of CPU.  I've called Apple Service and they can't help.  HELP!

  • AVCHD files in PrPro 5 (playback- & editingproblems)

    Hi I have to edit a project in PrPro CS 5 with AVCHD files: (MediaInfo:) General Complete name               D:\(...)\STREAM\00002.MTS Format                            BDAV Format/Info                     Blu-ray Video Overall bit rate mode      Var

  • Is it possible to show R3/CRM order errors in e-Commerce JSP's?

    Hi all, can e-Commerce Java application show backend order errors in JPS's when simulating or creating a new order from the shop? If it is possible, how can it be done? Thanks.

  • Error message F3-F100-00​10

    Hi, I've read some of the previous postings on this but can't find my answer. First of all I apologise for my computer illiteracy! Ok, the story goes: My Satellite L750/0S4 crashed and it gave me a warning to back up my files as an unfixable problem