Forum Replies Created
- AuthorPosts
- Scott DaughtryParticipant
Mr. Emura – that solved the problem. Thank you for the solution!
Scott DaughtryParticipantI 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)”;Scott DaughtryParticipantem-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!
Scott DaughtryParticipantHello 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.TextThis 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.
Scott DaughtryParticipantQuestion: 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.
Scott DaughtryParticipantNedMaker – 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.
Scott DaughtryParticipantGood 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
gleave alone
Scott DaughtryParticipantGood 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
cleave me alone (i.e. don’t add prefixed numbers)
*———— end
with the end result should looking like this:
*———– start
01 – a
02 – b
03 – cleave 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 linesI’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.
- AuthorPosts