+ Reply to Thread
Results 1 to 5 of 5

Create word variants with different suffixes

  1. #1
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Create word variants with different suffixes

    I tried to record a macro but it seemed impossible when cursor was within cell text.

    Lets suppose we have a cell with this content:

    πήρακε ;; ελανατατικός ;; μη προκός ;; σιφτικός

    (Or it could simply be one word in the cell: παρεινός)

    I want to be able to put the cursor within a given word, for example in this case ελανατατικός, and have this result:

    πήρακε ;; ελανατατικός ;; ελανατατική ;; ελανατατικό ;; μη προκός ;; σιφτικός

    That is, create variants with the endings ή and ό for a word ending in ός and run this macro with a keyboard shortcut.
    Last edited by greek; 05-10-2013 at 11:12 AM.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Create word variants with different suffixes

    Hi,

    I don't think you can run code when the cursor is in a cell but you can use something like this.
    Select the cell(s) you want to edit and press Ctrl+Q: Greek.xlsm

    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Re: Create word variants with different suffixes

    Thanks! I want however to maintain the first instance ending in -ος (as illustrated in the above example).
    For example, with your code this:

    πήρακε ;; ελανατατικός ;; μη προκός ;; σιφτικός

    Becomes
    πήρακε ;; ελανατατική ;; ελανατατικό ;; μη προκή ;; μη προκό ;; σιφτική ;; σιφτικό

    Whereas I want:

    πήρακε ;; ελανατατικός ;; ελανατατική ;; ελανατατικό ;; μη προκός ;; μη προκή ;; μη προκό ;; σιφτικός ;; σιφτική ;; σιφτικό

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Create word variants with different suffixes

    check this please: Greek.xlsm

  5. #5
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Re: Create word variants with different suffixes

    Brilliant, many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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