Tapatalk

Save selected text as file to specified location

Save selected text as file to specified location

4
NewbieNewbie
4

    Sep 15, 2006#1

    I'm trying to write a macro to reformat a bunch of selected text. It requires that I run an external program (to filter out html markup, actually) so I'm trying to save the selected text to a file then run it through the external processor and replace the selected text with the program's output. I'm getting close but I can't see how to reliably save the text to an external file in a place where I can find it. Is there a way to save a file in a known place? Am I going about this all wrong?

    Signed,
    Getting a little frustrated.

    6,685587
    Grand MasterGrand Master
    6,685587

      Sep 16, 2006#2

      Sure, with the same command as you save a new file: Save As!

      IfSel
      Copy
      NewFile
      Paste
      SaveAs "Path\Filename.ext"
      EndIf

      Note: Recording a macro is easier than writting it directly.

      Next time use a better thread subject and ask your question in the correct forum. I have corrected the subject and moved your question to the macro forum.
      Best regards from an UC/UE/UES for Windows user from Austria