![]() |
| 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. |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#21
|
|||
|
|||
|
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! |
| Ads | |
|
#22
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
|
#24
|
|||
|
|||
|
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
|
|||
|
|||
|
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:
|
|
#26
|
|||
|
|||
|
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
|
|||
|
|||
|
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:
|
|
#28
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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:
|
| Thread Tools | |
| Display Modes | |
|
|
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 |