Location of found text

Hello,
I am trying to find text in a file and add a signature form directly above it with VBA.
I have the code to create the signature box and find the text, but I can not figure out how to determine the location of found text.
For example, I need to search for the word "Signature" and then create a signature form directly above the word.  Any ideas?
Thanks

This worked, thank you.
Can I ask one additional question:
I now have the four coordinates of the word "Signature".  I would like to add a signature field directly above these coordinates, but no matter what I do I can not get the form to be directly above the "Signature" for each instance when it is found on a page.  The "Signature" is not found in the same place on each page.
Is there something I am missing in using the Fields.Add and the found coordinates?  The page is in landscape.
Set Field = Fields.Add("signature1" , "signature", j, left, top, bottom, right)
Thanks again.

Similar Messages

  • Acrobat 9 Find Function Needs to Highlight the found text

    Searching existing documents for a word using "Find" sometimes results in the word being highlighted and sometimes only the cursor is placed at the found word with no highlight. This is a problem because the cursor is very hard to locate without highlighting.
    The "Find" function should insure that found text is always highlighted.
    Or maybe there is a setting for this?
    (Also still waiting for a default View/Page Display to "Two Up Continous" as it constantly defaults to One Page which is a waste of the wide monitors.)
    Thank you.

    This bug has been fixed in the Acrobat 9.4.6 update:
    Windows:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5244
    Mac:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5238

  • Error: location not found

    Hi everybody,
    while doing an initial transfer of master data- the location model was cleared successfully, but the materials and work centers  int models give an error: location not found with Q msg. TID not giving any details in system log as it says no log found. I am unable to figure out what to look out for now.
    Regards,
    Lok

    Lok,
    Unfortunately, my ABAP is also meager.
    The include in your other post does not exist in my system (SCM 5.0) although I have several with similar names.  Even if I had any ABAP, I couldn't help much without the code to look at.....   You really need to get an experienced ABAPer to sit with you in a debug session.  He needs to tell you contents of all the fields that are being used to determine the message, and he should give you a suggestion as to what is wrong.
    Beyond that, next thing I'd try is some logical troubleshooting.  Find a Material/Plant/customer combination that you KNOW exists in SCM.  Create a sales order against this combo, and if it works, then you know the problem is related to the missing Productl/Location Master data.
    You have not yet identified to me what contents you found in the failed LUWs, only that the messages were short and cryptic.
    While waiting for your ABAPer, you might want to try this:
    1.  Generate your errored queue.  I think I don't have to tell you how to do this.
    2.  SMQ1 in the ERP.  populate client, asterisks for queue name and queue destination.  execute.
    3.  select the errored queue from the list.  clik display.
    4.  Status should be 'sysfail'.  Double click on the word sysfail.  You will get text of the message that will give a little more information.  If the location is not readable (sometimes it is too long to fit into the popup window), close the error message window.
    5.  Put your cursor on the queue name and clik display.
    6.  The first LUW in the list is the one you want to see.   Should be tagged with an error. Again, put your cursor on the queue name and clik display.
    7.  Now you are seeing the data contents of the record.  It is displayed in hex and in ASCII.  You can kind of read the ASCII (text) stuff.  Page down until you get to the ascii "I T _ C I F _ M A T L O C".
    8.  On one of the rows you should see a location type, eg '1 0 0 1, 1 0 0 2, 1 0 0 3, etc (there will be spaces between each number).  In the same row, just before this, there will be the name of a  location.  There may be multiple locations in this LUW, keep paging down, eg, plants, warehouses, shipping points, customers, etc etc.  EVERY LOCATION IN THIS LUW MUST PREVIOUSLY EXIST IN SCM before the product/location record can be created.  Do they?
    9.  If they do, and you have tried all the previous steps, then you must assume that 'somehow' the data in SCM is corrupted (this does happen).  Delete each of the locations and re-CIF them across, one location at a time.  Do not use jobs, do it manually, it will go quickly.  Then, try to re-create and re-activate the failed IM (which is a Material Master record).
    I am unfortunately on holiday and am now embarking on some travel, so I won't be able to assist any more today.  I will try to log on tonite or tomorrow (I am in North America) to see where you have gotten.
    Good Luck,
    DB49

  • Incorrect content-type found 'text/html'

    Hello,
    I am trying to print a BI report result from portal. I get the error message "Error while generating PDF".
    When I see the detail of the message, I could find the mesage "Incorrect content-type found 'text/html'"
    We are using web templates of BI7.0.
    I have followed the note 1004321. Nothing happened.
    Is this the rite note or am i misdiagnosing the issue?
    Please help !
    Thanks,
    Abhishek

    Did you change the password?
    Maybe a restart of the J2EE engine will solve this (in case you didn't restart it already
    cheers,
    Noë

  • Java.lang.Exception:Incorrect content-type found text/html

    Dear All,
    While opening a PCR throught MSS, which is PDF based service, I am getting following error.
    java.lang.Exception: Incorrect content-type found 'text/html'.
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF     at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:418)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
    I have refered previous posts aslo related to this but no solution. Please try to help me.
    <removed_by_moderator>
    Read the "Rules of Engagement"
    Thanks.
    Roshan
    Edited by: Juan Reyes on Mar 31, 2009 3:40 PM

    hi,
    Most probable reson for this issue is the expiry of the password for ADSUser.
       Go to Visual Admin:
       -> server -> service -> security provider service -> user management tab, then select user ADSUser.
       If option 'No password change is required' is not selected, please check it.
    Hope this helps!!

  • Paste found text in new frame

    I have this script to find my desired text:
    var myDoc = app.activeDocument;
    // Creates  service Text Frame
    myDoc.textFrames.add({
        geometricBounds: [50,-300,740,-70], fillColor: "C=100 M=0 Y=0 K=0", fillTint: 20, name: "Summary"
    //Find  text
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(.+\\r)(\\+.+$)";
    found = app.activeDocument.findGrep ();
    alert (found.length)
    var new_grep = new Array()
    for(a=0; a<found.length; a++)
    new_grep[a] = found[a].contents
    Now, what I'd like to know is how to paste the found text (the contents of new_grep) into my textFrame "Summary".
    Additionally, I should erase substring #2 (\\+.+$) from the original frame...
    Trying and trying but I can't find my way, I know, it should be damn simple...
    Thanks,
    Guido

    Hi Jongware,
    after a bit I returned to my script and, of course... it doesn't work anymore!
    This is what I'm up to:
    var myDoc = app.activeDocument;
    // Creates  service Text Frame
    myDoc.textFrames.add({
        geometricBounds: [50,-300,740,-70], fillColor: "C=100 M=0 Y=0 K=0", fillTint: 20, name: "Summary"
    //Find text
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(.+\\r)(\\r\\+.+$ \\r)";
    myFind = app.activeDocument.findGrep ();
    var myCount=0;
    for (i=0; i<myFind.length; i++)
    alert (myFind)
    myDoc.textFrames.item ("Summary").contents=myDoc.textFrames.item ("Summary").contents+myFind[i].contents+"\r";
    myCount++;
    // Delete "+ foto"
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(\\r\\+ FOTO.+$)";
    myDoc.selection[0].changeGrep();
    The new frame is created, but nothing gets pasted in it.
    I DO REMEMBER it used to work (that was before my hard disk crashed and I had to open my iMac to replace it...), God knows what I've done wrong.
    Suggestions?
    Thx,
    g

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

    Hi Dmcrory,
       In addition to what Camelot and nobody loopback point out, one must also consider the fact that UNIX text tools are largely line based. You also fail to tell us for what kind of text you are searching. If you are looking for multiple words, there's a very good chance of finding the expression wrapped onto different lines. With hyphenation, even single words can wrap to multiple lines. Tools that search line-by-line will miss these unless you use multiline techniques.
       Multiline substitutions require that you write "read-ahead" code for the command line tool that you're using and that you take that into account in the substitution. Given how you want the results to be printed out, you may also want to preserve any newlines found in the match, which is even more difficult. That could bring up the subject of line endings but that's a completely different topic.
       I apologize if this sounds discouraging. Multiline searches aren't needed that often and in most of those cases, exceptions can be dealt with by hand. I just didn't want you to get surprised by it. To give you an idea of how easy basic substitution is, have a look at Tom Christiansen's Cultured Perl: One-liners 102 and One-liners 101. Both have some "in-place" substitution examples.
    Gary
    ~~~~
       MIT:
          The Georgia Tech of the North

  • HT4993 how do i see the location of a text message?

    How can I see the location of a text message on my iPhone 5, the same way I can see the location of a message in my FB messages?

    You mean the location of the person sending the message?  You can't.

  • Using 'find' (ctl-F), found text is off-screen

    Most of the time, when I use ^F to search a page, the 'found text' is one line below the visible screen - ie, I have to scroll up to see it.
    This is not a big deal, but if there's something I need to change, I'd like to know it.

    Hi,
    I think there is no way  to do, I couldn't find.
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

  • Grep to replace only part of the found text

    I'm using ^.+~> to search the begging of a paragraph up to an EN space, but is it possible with GREP to format just PART of the string found?
    There are roman numerals that precede a period and an EN space and I want to apply formatting to just the roman numerals, leaving the period and EN space alone.
    I did found one post that mentions using "some" but I'm not familiar enough with GREP to know how it works.
    Can anyone commend a good source for GREP coding?
    Thanks,
    Ken

    Try this:
    ^(.+)(?=\.~>)
    I just changed your original code to use the period and en-space as a positive lookahead -- it'll only find characters at the beginning of the line if they're followed by a period and an en-space, but will not include them as part of the found text.
    If these items all have the same paragraph style applied to them and that style isn't used anywhere that you wouldn't want the formatting, I'd also consider setting this up as a GREP style. You could also do it as a nested style applying your character style up to (.~>). (Don't include the parantheses - I was just trying to make it clear what the expression to use is.) 
    Hope that helps.

  • I get a "message not found" text from "Unknown". I'm getting some of my texts but I don't think all. I appreciate any help! Thx!

    I get a "message not found" text from "unknown". what is this and how do I get it to stop? Thanks!!

    Did you jailbreak your iPhone? If you did, that's probably why you're seeing those messages, see this Apple doc -> Unauthorized modification of iOS has been a major source of instability, disruption of services, and other issues
    Try restarting or restoring the iPhone.

  • How to save as AI file in same location with all text curves?

    Hi Guys,
    I am also looking for a script. Here are the details....
    I do have lot of AI files (from different paths), which are completly work  done. So I just need to make them (all files) a copy with all text  curves in the same path should create folder name called 'LC'.
    From  the given path all the files should save as to 'LC' folder. ('LC'  folder needs to create at the same location and original file should  stay as it was, so no changes in original/source file)
    While  making curves we must remember that layers contains lock. So have to  unlock all the layer and make curves and lock them back.
    While save as the all files in the file names should add '_LC' at last. For example: file name is 'xyzxyz.ai'. It should come 'xyzxyz_LC.ai'
    FYI: Using Adobe CS4...
    if you help me that would be really grateful...
    Thanks in advance..
    Kind Regards
    HARI

    Hello Hari,
    maybe this could be a startingpoint for you:
    var lb="\n";
    function writeNtimes(max){
         // read about namespace and visibility
         var string2 = "Read the F. Manual!";
         for(i=0;i<max;i++){
              //about loops
              alert(string2);
    function tieMyShoes(){
         if(willingness){
              //about conditional statements
              var refs = "Mozilla js reference and guide - very good\nAdobe Illustrator and ESTK references";
              alert(" Please start with the following "+lb+lb+refs);
              // about Strings
              gotIt=true;
         }else{
              var moocher = confirm("are you just looking for someone doing your work for you for free?");
              if(moocher){
                   writeNtimes(10);
              }else{
                   gotIt=confirm("Yes I understand");
    var aString = "Hello HARI";
    alert(aString);
    var gotIt = false;
    var willingness = confirm("are you interested in learning Illustrator JS?");
    var string2="RTFM!";
    while(gotIt==false){
         tieMyShoes();

  • Set Location of individual text box - report design

    Post Author: sonjeeva
    CA Forum: Crystal Reports
    Hi Guys,
    Is it possible to set location of an individaul text box to be at the end of report? I know if I have this at end of report area it would work. But my report has a sub report in end of report area and the text box doesn't appear at the end of both reports.
    Cheers
    Sonny

    Post Author: kcheeb
    CA Forum: Crystal Reports
    If you are creating the report through code (C#, VB etc.) you could get the location/size of the subreport and then set the text box location based on those parameters.
    I don't think it's possible from within the Crystal report designer itself. At least I couldn't find a place to do this.

  • [JS] Found text is not a text?

    Hi,
    Could you help me to find a reason of 'undefined is not an object' error, pls?
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = myParaStyle;
    mFound = myStory.findText();
    if (myFound.length > 0)
         mStart = myFound[0].insertionPoints[0];     // here is error 'undefined is not an object'
    this is a part of preety long code and I wouldn't paste it here, but:
    I checked some variables properties:
    mFound.length  = = 1 so InD found some text, I guess;
    mFound[0].constructor.name = = "Array";
    mFound[0].length = = 0;
    so what is found by ID (which .appliedParagraphStyle = = myParaStyle) and why this is not a text?
    If I run this part of code manually, starting from point where script ends ==> mFound.length = = 0.
    I know that I made mistake(s) somewhere, but I have not idea what should I look for...
    Has 0-element Array some property to check and discover, where it came from?
    Help me pls.
    Thx

    Now to your question:
    1) Usually, myArea.findText() will return an Array of zero, one or more Text objects. In other words, provided that myFound.length > 0, each myFound[i] should be a Text specifier. This is what happens if myArea is the Application, a Document, a Story, or any singular Text specifier.
    2) BUT, if for some reason myArea is a plural specifier—such as myStory.paragraphs.everyItem()—then myArea.findText() will return an Array of Array(s) of Text(s). The outer array reflects the plural behavior of the specifier, while the inner arrays reflect the return type of the findText() method. In that case you may have empty arrays within the outer array. Indeed:
       myStory.paragraphs.everyItem().findText()
    will send the findText() command to every paragraph, so any paragraph that does not match the query will produce an empty array.
    Maybe your script leads to something similar. We'd need to see more code to figure it out.
    @+
    Marc

  • How to do search with multiple texts across documents and rename the file with found text?

    Hello:
    I'm trying to do the batch search across the multiple documents and rename the file (or save as) after the found word?
    In example:
    I have many unique texts and would want to search across the multiple documents.
    If a document is found with that unique text then, the document is either renamed or save as with that unique text. 
    So, I could know what unique text that file holds.
    How do I do that?
    Let me know.
    Thanks

    Welcome to the forum!
    When you want to post a block of code, you can enclose it with the mark ups { code }
    That is the key word code surrounded by curly brackets, but without the spaces
    You seem to be running a very old (and unsupported release of the database)
    7.3 has not been a current release for about 10 years.
    It's probably been that long since I've used this technique, but i think it should work.
    You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
    If you used split to chop up your export file, use cat or dd to reassemble it.
    So, something like this:
    mknod bk.dmp p
    cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
    imp SYSTEM/$PASSWD parfile=imp_bk.parfile
    rm bk.dmp
    $ cat imp_bk.parfile
    file=bk.dmp
    log=imp.log
    full=y
    buffer=1048576
    ignore=y
    commit=y let us know if still have problems.
    Good Luck!

Maybe you are looking for

  • How do you remove an effect from an image in iMovie?

    I have had my Mac a couple of weeks and I am now making my first animation with it. In order for the animation to run smoothly I need to make sure there are no effects on the images that move the image around the screen; however iMovie has automatica

  • How to Write a file from hex format to another format

    hi I am trying to create a file (IBM AFP-printer format) from the hex file which i have created after reading that IBM afp file. Now i have to do some changes in that hex file data and store it back to the same format. I have tryed storing it using:

  • Public_html works. But only for me.

    O.K. I'm about to lose my sanity. I have public_html working. But thats the problem, I have it, but no one else does. About three weeks ago I installed a new Netware 6.5 server. Up to date on all patches. I have checked to see if the instructors and

  • IPhoto Doesn't Recognize iPhone5

    All of my iPhones to date have seamlessly mounted to iPhoto to allow for the back up of my pictures and syncing of the pictures I'd like to keep on my phone. My newest iPhone an iPhone5 shows up without a name or any pictures in iPhoto. How do I reso

  • How to remove blackberry ID

    I've just purchased a blackberry passport and my 1st time using blackberry. When creating the blackberry ID I've given a wrong email address which I does not own, and the system does not check validity. Now I cannot reset my password and they will se