Wildcard "special" searches

V

Venky62

Yes, you are right. I never could have imagined what you actually wante
if you had not explained it. So you need to go over each word of th
text, and correct as you go. Got it. I was laughing at this whol
exchange of messages. A classic example of the programmer no
understanding what the client needs. Your nagging is helping me, becaus
this is how a client is going to be. So, here goes. Another code! Thi
is as simple as it can get.

Just copy the code, and assign a keyboard shortcut to it. When you wan
to transpose a footnote, place the cursor anywhere on the line where th
footnote reference is, but BEFORE the footnote reference (NOT betwee
footnote reference and next character). Press the keyboard shortcut
Presto! Your desire will be fulfilled!

Peter T. Daniels;492973 Wrote:


+-------------------------------------------------------------------
|Filename: TransposeFootnote3.txt
|Download: http://www.wordbanter.com/attachment.php?attachmentid=136
+-------------------------------------------------------------------
 
P

Peter T. Daniels

Yes, you are right. I never could have imagined what you actually wanted
if you had not explained it. So you need to go over each word of the
text, and correct as you go. Got it. I was laughing at this whole
exchange of messages. A classic example of the programmer not
understanding what the client needs. Your nagging is helping me, because
this is how a client is going to be. So, here goes. Another code! This
is as simple as it can get.

Just copy the code, and assign a keyboard shortcut to it. When you want
to transpose a footnote, place the cursor anywhere on the line where the
footnote reference is, but BEFORE the footnote reference (NOT between
footnote reference and next character). Press the keyboard shortcut.
Presto! Your desire will be fulfilled!

Um, no. The one you gave me already does that (plus some other stuff
that I can simply ignore). I find that as I used it yesterday, I would
usually do the transpose with the cursor directly before the note
reference. (I haven't mentioned that I'm translating from German as I
go, because that's not relevant to the problem, but it does mean that
the cursor often happens to come out in that spot.)

The _only_ thing it should do is transpose the two characters the
cursor is between (just like the one I already have, except it should
work on note refs as well as simple characters). It might be ok for it
to work on "fields" generally, but ones other than footnotes (or
endnotes) would rarely if ever arise, because authors don't insert
their own figure or cross reference markers. Thus ideally it would do
nothing but add note-reference capability to what I already had, so
that I wouldn't have to have separate commands (to remember) for the
two kinds of Transpose that exist only because of Word's quirk (and
because after all these years Word has never simply included a
Transpose command!).
 
V

Venky62

Okay. Your wish is granted. I have combined the original transpose macr
with the code I wrote and now you can remove the old transpose code an
put this one. It will work exactly as the old transpose macro with adde
functionality of being able to handle footnote references as well. I
will not work for end notes.
So like in the original transpose macro, you have to place the curso
between the two characters you need to transpose and then press th
shortcut key. Happy? It was great learning experience for me.
Peter T. Daniels;492981 Wrote:


+-------------------------------------------------------------------
|Filename: TransposeFinal.txt
|Download: http://www.wordbanter.com/attachment.php?attachmentid=137
+-------------------------------------------------------------------
 
P

Peter T. Daniels

It works, and I thank you for providing exactly what I asked for
originally! Thank you very much.

I was nonplussed by the line "option explicit" at the top, and also by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.
 
V

Venky62

Phew! I feel happy that it suits your requirement.

The "Option Explicit" statement is part of VBA options. It simply mean
that the code has to declare all variables. It prevents error i
programming.

Yes, when I at last realized what you were really looking for, it wa
simply a matter of connecting the two macros by a few lines of code.
could have included all the code in one macro, but this is a better wa
of doing it. Any programmer who looks at the code will be able to follo
it more easily.
It works, and I thank you for providing exactly what I asked for
originally! Thank you very much.

I was nonplussed by the line "option explicit" at the top, and also by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.

On Aug 1, 12:33*pm, Venky62 (e-mail address removed) wrote:-

Venky62

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
P

Peter T. Daniels

Phew! I feel happy that it suits your requirement.

The "Option Explicit" statement is part of VBA options. It simply means
that the code has to declare all variables. It prevents error in
programming.

Does that mean I'm supposed to include it somewhere within the text?
Yes, when I at last realized what you were really looking for, it was

What was unclear about the original formulation?
 
V

Venky62

No, you don't need to include the Option Explicit statement to make th
code work. If you have copied the code without that statement, the
fine.

What I did not understand was how a copy editor worked. I was trying t
create a macro that took care of all the footnote references in one go
to use the full power of VBA programming - not realizing that that wa
not what you wanted to do.
On Aug 2, 1:04 am, Venky62 (e-mail address removed) wrote:-
Phew! I feel happy that it suits your requirement.

The "Option Explicit" statement is part of VBA options. It simpl
means
that the code has to declare all variables. It prevents error in
programming.-

Does that mean I'm supposed to include it somewhere within the text?
-
Yes, when I at last realized what you were really looking for, it was-

What was unclear about the original formulation?
-
simply a matter of connecting the two macros by a few lines of code. I
could have included all the code in one macro, but this is a bette
way
of doing it. Any programmer who looks at the code will be able t
follow
it more easily.

Peter T. Daniels;492987 Wrote:
-
It works, and I thank you for providing exactly what I asked for
originally! Thank you very much.-
-
I was nonplussed by the line "option explicit" at the top, and als
by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.-

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
P

Peter T. Daniels

Got it. Thanks!

No, you don't need to include the Option Explicit statement to make the
code work. If you have copied the code without that statement, then
fine.

What I did not understand was how a copy editor worked. I was trying to
create a macro that took care of all the footnote references in one go -
to use the full power of VBA programming - not realizing that that was
not what you wanted to do.
 
P

Peter T. Daniels

(I don't suppose you can handle XML? The Bibliography Tool has some
pretty annoying mistakes in it, and using Yves Dhondt's page I've been
able to correct only one of them.)

This past week, I was able finally to understand Yves Dhondt's system
-- the problem was that it does NOT work with any of Word's built-in
styles, since they reference things in the code for Word itself, but
only with styles that Yves himself made available on his website
(www.codeplex.com/bibliography).

I was able to adapt one of his styles to my needs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top