Find and replace tags opening and closing

Is there a way to search and replace the entire tag in dreamweaver?

I want to take away all of the < span > tags in the document because it is an epub. But some of the <>spans are for the body and some are for another hairstyle, in this case italic. I can go through and just find and replace, but then who would only replace the opening < span > and not closing </span >, leaving a lot of open tags < em > to sift through. There are currently more than 1,500 cases of italic text in the book and I won't have trouble all by hand. What I want to do is to find the particular < span > tag and replace < em > < /em > both the opening and closing.

Here is an example of what I'm trying to do:


To find:

< span class = "CharOverride-4" > < / span >


And replace with:

< em > < /em >



How do I get there?


Thank you

If you use the Search Tag he finds tags opening / closing and replaces them with opening and closing .  Please see my screenshot again.

Nancy O.

Tags: Dreamweaver

Similar Questions

  • Need help to find and replace grep using Xml tags!

    Hello world

    I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).

    Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.

    My expectation is the value of these update without deleting the XML tag.

    Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.

    Before running the Script: After running the Script:                                                                                                             

    Screen Shot 2016-09-17 at 5.03.18 pm.pngScreen Shot 2016-09-17 at 5.09.31 pm.png

    Code:

    var flgGREP="[$]\\d+[.]\\d+"
    var Price="$24.10"
    myLine=app.selection[0];
    FindReplaceValue(flgGREP,Price,myLine);
    function FindReplaceValue(findValue,replaceValue,Sapps){
        app.findGrepPreferences = app.changeGrepPreferences = null;  
        app.findGrepPreferences.findWhat = findValue;  
        app.changeGrepPreferences.changeTo = replaceValue;
        Sapps.changeGrep(); 
    }
    

    -yajiv

    This is because the XML (opening and closing of the representations) tag is a special character but a generic.

    So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.

    However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.

    Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).

    Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:

    var root = app.activeDocument.xmlElements[0];
    var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" );
    var tag;
    
    while ( tag = copy_frame_tags.pop() ) {
         tag.contents=="00.00" && tag.contents="24.10";
    }
    

    HTH

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • How can I find and replace the xml tags?

    Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.

    Here is an example of the xml struct...

    < Entry >

    < name > DEFAULT < / name >

    < such > default < / such >

    DEFAULT < address > < / address >

    < / Entry >

    I use this initial structure to define paragraph styles to follow when you import the xml data.

    This leaves DEFAULT in place everywhere where an entry is not any content of this field.

    I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...

    So I think that's what I'm looking for in each case

    "< name > DEFAULT < / name > ^ p.

    and I want to replace it with nothing.

    Is this possible in a script (ideally javascript)?

    I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...

    using indesign cs5

    Thank you very much

    Hello

    Script should do it in two steps:

    1 find all occurrences of that is ' > by DEFAULT.<>

    2 delete the whole paragraph which is a found_text container.

    For example, in this way - JS - (a textFrame filled your text must be selected):

    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    

    Rgds

  • How to find and re - open my custom gadgets after I closed the sidebar?

    Original title: bar side and gadgets

    How to find and re - open my custom gadgets after I closed the sidebar?

    Hi curious boar.

    See the links for the steps open gadgets and more information o how to customize the gadgets below:

    Customize Windows Sidebar:http://windows.microsoft.com/en-US/windows-vista/Customize-Windows-Sidebar

    Windows Sidebar: Frequently asked questions:http://windows.microsoft.com/en-US/windows-vista/Windows-Sidebar-frequently-asked-questions

    Windows Sidebar and gadgets (overview):http://windows.microsoft.com/en-US/windows-vista/Windows-Sidebar-and-gadgets-overview

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • DVD disc drive tray keeps opening and closing constantly

    FOR WINDOWS VISTA HOME PREMIUM EDITION

    DVD CD ROM DRIVE TRAY KEEPS OPENING AND CLOSING CONTINUOUSLY - GET COMPUTER TO READ DISCS AT ALL - OTHER ASPECTS OF THE COMPUTER RUN FINE - DIAGNOSIS SAY THAT HE DIDN'T THERE HAS NO PROBLEM WITH ANYTHING.
    IN DEVICES, I NOTICED THAT DEVICE DRIVER IS FOR ARCSOFT - THIS UNIT HAS BEEN IN FOR REPAIR, AND I ME ASKING IF IT WAS CHANGED FROM MICROSOFT DRIVER AND WHY? REPAIR SERVICE DID NOT WARN THIS CHANGE.
    CAN ANYONE HELP.
    SAPPHIRE.

    The device driver can say Arcsoft because it may have provided to Microsoft by them.
    In Device Manager, open the Properties window for the drive, and then click the driver tab, then update driver...  Click the search selection automatically. If it finds a driver, let it install.

    If the drive still cycles, then you can have a bad drive. If it is still under warranty, contact the place of repair for repair or replacement.

    SC Tom

  • I get Aero Lag when opening and closing windows in Windows 7

    original title: Aero Lag when opening and closing windows in Windows 7

    UPDATE!

    OK because here we have the ball, I'm changing it to better reflect what is happening. The links below are some of the hundreds of post, will find you on the internet about this Aero lag. Some offer workarounds and some are not. I just googled Aero Lag and it was on the first page.

    If you have the same problem, please provide:

    1. what kind of graphics card you have.
    2. what kind of driver are you using (Win7 preinstalled or drivers from the manufacturer)
    3. your version of Win7 has an update or a clean installation.
    4. what motherboard you have.

    From the sounds of it, Microsoft is looking for a solution.

    I also ask for the forum administrator to make a sticky like many people is facing this problem.

    -Randall

    http://www.SevenForums.com/performance-maintenance/22313-Aero-lag-good-system.html
    http://www.SevenForums.com/graphic-cards/21250-Win7-Aero-Windows-have-choppy-delay-when-opening.html
    http://social.technet.Microsoft.com/forums/en-us/w7itproperf/thread/a013396d-8953-4E32-8D13-f2d119cd730d
    http://www.flamehaus.com/BBS/-vp3478764.html
    http://www.YouTube.com/watch?v=YKNj_90E_PI

    http://www.hardforum.com/showthread.php?t=1465844
    http://windows7forums.com/Windows-7-hardware/1549-Windows-7-video-lag.html
    http://windows7forums.com/Windows-7-software/23315-gaming-video-lag-choppyness.html
    http://windows7forums.com/Windows-7-support/5287-Aero-lags-when-open-new-programs.html
    http://Forum.EeeUser.com/viewtopic.php?id=66007
    http://www.Neowin.NET/forum/lofiversion/index.php/t787172.html
    http://www.YouTube.com/watch?v=YWdVrSUhvLE

    Randall

    Solved my problem with Aeor lag.

    Reinstall Windows 7 U64 twice with the new/old driver.
    Replaced Gforce 8800GTX with Gforce GTX480.
    Spent several days on this problem without solution.

    But here's a very simple solution that works for me.

    I removed the USB extension cablefor my CreativeHS - 1200WirelessUSB Gaming Headset.

    Aero lags when extension Iused USB and headphone load.
    Without extension USB cable, all right.

    So he thinks it's a USB extension cable voltagedrop, forces the system to lag. ?

    Hope this can help.
    Sincerely,
    Dennis Psilander

  • Find and replace it with an invalid Code in Dreamweaver CC 2015

    I have a HTML file of 800 line with about 200 H3 tags not closed I want to remove. I try to use search / replace, but it doesn't seem to be able to find non closed tags.

    In the excerpt below, I want to remove or delete the H3 tag:

    < /ul >

    < /li >

    < h3 class = "best_SubCategory_Title" id = "455474Title" >

    Best sedan

    < ul class = "ssMatchup_Entries" id = "Matchup455474Entries" >

    < /Li > < li > agreement

    Camry < li > < /li >

    Mazda 6 < /li > < li >

    Passat < li > < /li >

    < /ul >

    I tried different ways, but Dreamweaver search / replace engine can't not find invalid or cavities not blocked tags?

    Here are a few things that I tried, and as you can see, Dreamweaver cannot find the H3 tag:

    Screen Shot 2016-01-21 at 11.18.39 AM.png

    Screen Shot 2016-01-21 at 11.19.47 AM.png

    If I close it manually one of the H3 tags, and then find and replace can find. I think I can use regular expressions to do this, but I need to understand this too, if that's the only way.

    What do you think? Any idea on how to get rid of 200 H3 tags not closed? Perhaps another application?

    Answered my own question, here is the solution:

    For some reason, Dreamweaver cannot find and replace invalid code, or at least it is not easy to do. My problem was that I had a H3 tag not closed and would not replace it. I had to first close the H3 tag, and then I could replace it.

    I did a find and replace the one sought a ">" followed by a lot of white space, like this:

    As my license to close the H3 tag, then I could easily find and replace all now closed H3 tags, like this:

  • Find and replace using behaviors

    I used search and replace in CS3 to add HTML code that includes a behavior of DW. The behavior opens a popup message when clicked.

    Find and replace works and adding the behavior code correctly. However, when I save the page and then click on the link to test the behavior, the popup does not appear.

    The only way I can get the behavior to work properly must complete the find and replace, double-click to open the behavior of the Tag group, close the behavior and then save the page again.

    Is this a problem of DW or I do something wrong?



    have you also added all necessary css or javascript on pages so files?

  • How can I change a VI that is related to "NI_Excel.lvclass:Excel find and replace (str) .vi

    I need to create a new VI ' Excel find and replace (str) .vi ", for my own needs.

    LabVIEW does not allow me to do, because VI belongs to, "NI_Excel.lvclass."

    Instead of find and replace - I'd like to find him a string and tell me which column and row it is in.

    Thank you

    Have you tried to do this, even the jury of Exceldiscussion forums?

    You'll probably find what you want, or close at least something you could learn from.

    Can you open the VI you want to change?  Even if you are not allowed to copy, if you open it and see what it does, you can the recode yourself using the appropriate ActiveX functions.

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

  • My programs are opening and closing slowly

    Member of the expensive Microsoft Answers Community:

    My programs are opening and closing slowly from last night. Do you know why this could happen and if 'yes', what can I do to solve it?

    Deepa

    Hello

    Troubleshoot using these methods and you can try a system restore which I wouldn't do unless
    nothing else has helped.

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ==========================================
    ==========================================

    Only if necessary and then you run back through the above (including the drivers once again) anyway.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

  • CD drive keeps opening and closing by itself

    My CD tray keeps opening and closing by itself. In addition, I can't open it in the button, I need to go from my and eject it.

    I checked the bios and everythings fine; even updated.

    I removed the front panel

    I scanned with MalwareBytes malware; A large number of files but no associated with cd player

    I went once cd players

    I pulled the canned air into the lens

    That's all I did, to no avail.

    I came to the conclusion that it is a virus, because it is not that when starting and I can push the button to open it, even in safe mode.

    Although no antivirus can find it, and I can't find anything winscript/wscript in the Task Manager.

    Help, please.

    Thanks for the reply.

    1. the model is Packard Bell imedia S3840

    2. No, apart from the installation of the Sims 3, if you count that.

    3. I want to say that the problem still persists in Mode without failure.

    Method 1: Did, did not work.

    Method 2: Still did not work; I remember doing a couple of weeks ago, when he started.

    Method 3: I've updated a long time ago already (like I said: "updated")

    Thanks for the reply, but I've already fixed:

    The button to eject the disc has been blocked; and I had to go out for a minute and then put it in.

    Thank you!

  • Find and replace works only not for files in folders

    CC of Dreamweaver (version 13.2) find and replace does not work for 'folder '.... ', "Selected files to the Site" and "current Local Site together".  Works great for open files. Older versions worked fine.  What I am doing wrong?

    Clear your cache.

    Clear Cache corrupted in DW

    http://forums.Adobe.com/thread/494811

    Nancy O.

  • Find and replace multiple files Script

    I'm trying to find a script that either will open a selection of files .ai or browse all open in illustrator files and perform a search and replace. Right now I have a script that runs find and replace, but I must run on each document instead of all my files.

    var openDocument = app.documents.item(0);
      
    var search_string = /001D/gi; // g for global search, remove i to make a case sensitive search  
    var replace_string = '001E';  
      
    var text_frames = active_doc.textFrames;  
      
    if (text_frames.length > 0)  
    {  
        for (var i = 0 ; i < text_frames.length; i++)  
          {  
              var this_text_frame = text_frames[i];  
               var new_string = this_text_frame.contents.replace(search_string, replace_string);  
                 
               if (new_string != this_text_frame.contents)  
                   {  
                        this_text_frame.contents = new_string;  
                   }  
          }  
    }
    

    Thanks for any help.

    Oh, my bad, I gave bad advice, sticky code pixxxel in my code in a re-definition results from the 'I' counter.

    Vinicius is corrent.

    Here's my update:

    function FindAndReplaceScript_AllOpenDocuments(){
        for(var i=app.documents.length -1; i > -1;  i--){
            app.documents[i].activate();
            var aDoc = app.documents[i];
    
            var searchString = /001D/gi;
            var replaceString = '001E';     
    
            var theTF = aDoc.textFrames;
            if (theTF.length > 0) {
                for (var j = 0 ; j 		   
  • Find and replace text in documents invisibly

    Hello

    here in this forum I found the Russ find/replace function in ExtendScript, with which you can find and replace text. The script works perfectly when the documents are opened. In the case of invisibly open documents, that the script does not work since TextSelection is obviously applied. Refer to link:

    https://forums.Adobe.com/message/4032650#4032650

    I want to find and replace text within a structure of book, it would be useful if I could do it in documents that are not visibly open (Constants.FS_MakeVisible = false). Does anyone have an approach to find and replace in documents that are not visibly open? Or can someone confirm that this is only possible with TextSelection, which means that it does not work in documents open invisible?

    Thank you very much!

    Concerning

    Apollo102

    Apollo,

    I looked into this and I was able to reproduce the problem. Unfortunately, I wasn't able to find a perfect solution. Running in the debugger, I found that the failure occurs with the Find() call. All paragraphs, the text ranges, etc. are valid... it's just that the Find() call fails to find anything.

    I found that if you turn on/off the display, all of a sudden the Find() operation works with the hidden document:

    doc. IsOnScreen = true;

    doc. IsOnScreen = false;

    I don't know if this is a practical solution and of course, you may as well open visible in the first place. Would be of no help to just disable the updates with the interface?

    App. Display = false;

    Just be sure to return true at the end of the script

    I'm sorry I couldn't find a complete solution. It might be possible to appeal to something that makes the hidden document searchable, but I did not understand it.

    Russ

Maybe you are looking for