+ Reply to Thread
Results 1 to 2 of 2

Find string: if 2 hits in document -> then write to a new document path of that doc.

  1. #1
    Registered User
    Join Date
    05-11-2015
    Location
    Brno, Czech Republic
    MS-Off Ver
    Word 2013
    Posts
    20

    Find string: if 2 hits in document -> then write to a new document path of that doc.

    Hi, I was wondering if anyone can help me with this "little" macro, thx for any help.

    I have multiple files in multiple folders and I need to check if there are these strings :
    1.: "Zákaz práce na pozemních komunikacích"
    2.: "Zákaz práce na pozemní komunikaci"

    If either of these strings exists in document TWO TIMES (two hits in find option window) -> I want macro to write into a new window (document) path of that specific document (I mean for example C:\Users\James...)

    Thanks for any help!

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find string: if 2 hits in document -> then write to a new document path of that doc.

    Try something along the lines of:
    Please Login or Register  to view this content.
    Note: There must be exactly 2 hits and, if that occurs for both words, you'll get two files.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Profiling off of a document path
    By oatman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2014, 09:25 PM
  2. Find specific value from one document and copy it to another document
    By v_nastey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2013, 09:02 AM
  3. Find filename, path, document size, filename length and path length?
    By Laneyboggs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2010, 08:01 PM
  4. Path to Lookup from another document
    By Boethius1 in forum Excel General
    Replies: 8
    Last Post: 01-18-2006, 03:13 PM
  5. Opening a document without adding the path
    By Tmf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2005, 01:05 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