Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: ‘document’ is undefined error #29518
    Scott Daughtry
    Participant

    Mr. Emura – that solved the problem. Thank you for the solution!

    in reply to: ‘document’ is undefined error #29510
    Scott Daughtry
    Participant

    I could not find within the Tools -> Properties for all Configurations area anything related to ‘stack’; I then executed the Tools -> Reset All Settings options, loaded back my macro files and tried each of the and experienced the same error: ‘document is undefined’. Here is a simple macro that also failed:

    #tooltip=”Add (G-U)(Audience)(STG) text to end of current line”,1033
    document.selection.EndOfLine(false,eeLineView);
    document.selection.Text=” (G-U)(Audience)(STG)”;

    in reply to: Reformat: break line at n-chars #29502
    Scott Daughtry
    Participant

    em-like,

    After closing/restarting EmEditor a few times the problem seems to have sorted itself out and the mixture of macros are now working. If the problem returns I will add another post to this topic. Thank you for sharing that macro with the community, and thank you all that lent me assistance. Safe travels to you!

    in reply to: Reformat: break line at n-chars #29500
    Scott Daughtry
    Participant

    Hello em-like

    Thank you for your reply. Taking your advice, I deleted the first attempt at the .vbee file then did the following:

    1. Selected the code between 8< and >8 -lines as text file “somename.vbee” in EmEditor folder (reformat.vbee)
    2. Opened a text file that had lines of text > 100 characters in width and ran the macro
    3. received errors regarding the Title and Tooltip; after moving them leftwards to start at column 1 those 2 errors disappeared
    4. received errors regarding the alert message at their respective vbCRLF code; after combining the multiple lines into one and removing the _ character those errors disappeared
    5. now I’m stuck with an error stating ‘Object required: ‘document’ on line 7, which is this line
    str = document.selection.Text

    This is why I asked if this macro works with the current EmEditor version. I’m not trying to be difficult – I’m following the steps outlined above and encountering errors. I’m not a VBscript programmer – the languages that I know do not have syntax similar to VBscript and I’ve owned EmEditor for a week and trying to divorce myself from my longtime editor that has features that I rely on that EmEditor lacks.

    in reply to: Reformat: break line at n-chars #29497
    Scott Daughtry
    Participant

    Question: does the macro code posted above work with the current EmEditor version? I’ve copied/pasted it into a new macro file but keep receiving a runtime error complaining about a semi-colon character missing.. when I manually add the semi-colon character to the end of the line and save the macro and re-run it, the same popup error message is displayed onscreen.

    in reply to: Autonumber selected text #29496
    Scott Daughtry
    Participant

    NedMaker – your macro worked perfectly! Thank you SO much for your generosity in sharing it with me – I sincerely appreciate you!! If you have a repository of EmEditor macros I would love to explore them – I am new to EmEditor and its macro language is foreign to me.

    in reply to: Autonumber selected text #29495
    Scott Daughtry
    Participant

    Good morning Yutaka,

    It’s a pleasure to virtually meet you. I tried what you suggested – ensuring EmEditor is in INSERT mode I selected a block of text with the mouse while holding down the ALT key; press Alt-N to display the dialogue with Decimal selected (all other dialogue options left to their default), then press OK. The selected text is then overwritten with the numbers. The simple experiment used the following sample text:

    leave alone

    a
    b
    c
    d
    e
    f
    g

    leave alone

    in reply to: Autonumber selected text #29487
    Scott Daughtry
    Participant

    Good afternoon,

    Thank you for the reply. Here are the results of my trying each of your scenarios against the following simple example:
    *————- start
    a
    b
    c

    leave me alone (i.e. don’t add prefixed numbers)
    *———— end
    with the end result should looking like this:
    *———– start
    01 – a
    02 – b
    03 – c

    leave me alone (i.e. don’t add prefixed numbers)
    *————– end
    note: in each instance I was in INSERT versus OVERWRITE mode when editing the document:

    (1) Must not understand the example, as I’ve tried multiple ways and it failed each time
    (2) Vertical Selection selects all lines in the file, which I cannot figure out how to override or just work on a few selected contiguous lines
    (3) I don’t understand what you’re trying to say
    (4) Always overwrites the entire block of selected text with numbers (i.e. destructive overwrite)
    (5) This repeated the selected number across multiple lines

    I’m at a loss.. I’ve never encountered this level of difficulty in something so simple. Either the entire line of text is overwritten or every line of the file is renumbered.

Viewing 8 posts - 1 through 8 (of 8 total)