[RESOLVED] Self-changing macros in Notepad++
Results 1 to 3 of 3

Thread: [RESOLVED] Self-changing macros in Notepad++

  1. #1
    Join Date
    Feb 2001
    Location
    San Diego, CA, USA
    Posts
    719

    Resolved [RESOLVED] Self-changing macros in Notepad++

    I create a macro in Notepad++ consisting of several lines of text: "begin recording," type the text involved, "end recording" and then "save recorded macro." Works fine, I use the macro to insert the text into a document and all is well. Then I use "Ctrl-X" to cut soem text from elsewhere in the document and then "Ctrl-V" to paste it into the text which was inserted by the nacro, replacing a few words which were part of the macro. The next time I use the macro to insert in another document, the macro does not insert what was recorded, but inserts what was in the copy buffer from the "Ctrl-X" which I used to modify the previous document.

    Somehow, the macro is being changed by putting material into the copy buffer?

    Problem solved: I was not actually typing the text when creating the macro. I was putting it into the macro by pasting it from the copy buffer, and that doesn't work. One has to actually type the text when creating a macro.
    Last edited by Bill Heffner; January 29th, 2015 at 01:33 PM.

  2. #2
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,063
    If this is a Microsoft Word macro, you can edit the macro directly if you view the code window for it. What version of Word (if any) are you using?

  3. #3
    Join Date
    Feb 2001
    Location
    San Diego, CA, USA
    Posts
    719
    Not MS Word. Application was Notepad++. After discovering the solution, I realized that when creating the macro by pasting, what I was typing was "Ctrl-V," so the macro was created not as the content of what I pasted, but as what I actually typed, which was the "Ctrl-V." Makes perfect sense, actually.

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •