A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Wildcard "special" searches



 
 
Thread Tools Display Modes
  #21  
Old August 1st 12, 05:32 AM
Venky62 Venky62 is offline
Junior Member
 
First recorded activity by WordBanter: Jul 2012
Posts: 21
Default

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!

Attached Files
File Type: txt TransposeFootnote3.txt (2.0 KB, 28 views)
Ads
  #22  
Old August 1st 12, 01:21 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 2,933
Default Wildcard "special" searches

On Aug 1, 12:32*am, Venky62 wrote:
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!).

Peter T. Daniels;492973 Wrote:



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

--
Venky62


  #23  
Old August 1st 12, 05:33 PM
Venky62 Venky62 is offline
Junior Member
 
First recorded activity by WordBanter: Jul 2012
Posts: 21
Default

Okay. Your wish is granted. I have combined the original transpose macro with the code I wrote and now you can remove the old transpose code and put this one. It will work exactly as the old transpose macro with added functionality of being able to handle footnote references as well. It will not work for end notes.
So like in the original transpose macro, you have to place the cursor between the two characters you need to transpose and then press the shortcut key. Happy? It was great learning experience for me.
Attached Files
File Type: txt TransposeFinal.txt (3.4 KB, 38 views)
  #24  
Old August 1st 12, 09:42 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 2,933
Default Wildcard "special" searches

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 wrote:
Okay. Your wish is granted. I have combined the original transpose macro
with the code I wrote and now you can remove the old transpose code and
put this one. It will work exactly as the old transpose macro with added
functionality of being able to handle footnote references as well. It
will not work for end notes.
So like in the original transpose macro, you have to place the cursor
between the two characters you need to transpose and then press the
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|
+-------------------------------------------------------------------+

--
Venky62


  #25  
Old August 2nd 12, 06:04 AM
Venky62 Venky62 is offline
Junior Member
 
First recorded activity by WordBanter: Jul 2012
Posts: 21
Default

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.

Yes, when I at last realized what you were really looking for, it was 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 better way of doing it. Any programmer who looks at the code will be able to follow it more easily.

Quote:
Originally Posted by Peter T. Daniels View Post
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 wrote:

Venky62
  #26  
Old August 2nd 12, 12:41 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 2,933
Default Wildcard "special" searches

On Aug 2, 1:04 am, Venky62 wrote:
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?

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 better way
of doing it. Any programmer who looks at the code will be able to 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 also by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.

  #27  
Old August 3rd 12, 06:03 AM
Venky62 Venky62 is offline
Junior Member
 
First recorded activity by WordBanter: Jul 2012
Posts: 21
Default

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.

Quote:
Originally Posted by Peter T. Daniels View Post
On Aug 2, 1:04 am, Venky62 wrote:
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?

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 better way
of doing it. Any programmer who looks at the code will be able to 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 also by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.
  #28  
Old August 3rd 12, 01:24 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 2,933
Default Wildcard "special" searches

Got it. Thanks!

On Aug 3, 1:03*am, Venky62 wrote:
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.

Peter T. Daniels;492994 Wrote:

On Aug 2, 1:04 am, Venky62 wrote:-
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?
-
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 better
way
of doing it. Any programmer who looks at the code will be able to
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 also
by
the fact that it appears to be two separate macros, but somehow the
single keyboard shortcut works with both of them.--

  #29  
Old August 11th 12, 04:40 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 2,933
Default Bibliography Styles conquered! Wildcard "special" searches

On Jul 27, 1:02*pm, "Peter T. Daniels" wrote:

(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.
  #30  
Old August 12th 12, 12:43 AM
Venky62 Venky62 is offline
Junior Member
 
First recorded activity by WordBanter: Jul 2012
Posts: 21
Default

Good for you. Do you know of any wbsite where I can learn the basics of XML as applied to Word? Since Microsoft has adopted open XML format from word 2007 on, I think the future lies in getting familiar with this language. Thanks.

Quote:
Originally Posted by Peter T. Daniels View Post
On Jul 27, 1:02*pm, "Peter T. Daniels" wrote:

(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.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logical OR in Word wildcard searches wildetudor Microsoft Word Help 2 March 17th 09 02:13 AM
In "Paste Special", Can I set "Unformatted Text" as the first choi ATMYTV Microsoft Word Help 1 April 24th 08 06:07 AM
How to default to "Unformatted Text" in "Paste Special" in Word 20 Lucky Green Microsoft Word Help 3 October 4th 06 06:52 AM
Wildcard file searches PA New Users 1 July 12th 06 01:09 PM
specific searches in word documents, ie "Trust C" cware Microsoft Word Help 2 March 23rd 06 03:39 PM


All times are GMT +1. The time now is 05:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2004-2013 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.