Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default Wildcard "special" searches

On Jul 29, 10:48*am, Venky62
T wrote:
I can't figure it out. Maybe something was left out while copying my
code? Is there a period before the cut statement? Like ".cut" ?


Nope. It's directly below two lines in green.

Could you upload your document so that I could see where the error is
creeping in?


You want me to upload my normal.dotm template somewhere? Where?

I installed the macro simply by copying your text from the newsgroup
to the clipboard, then to a Notepad file; then copied it from the
Notepad file to the template (following Greg Mayor's instructions,
which have worked all the times people have posted useful macros here
before).

Peter T. Daniels;492930 Wrote:





On Jul 28, 11:19*pm, Venky62
wrote:-
Where are you placing the cursor ? Please try the macro with the
cursor
anywhere on the line where the footnote reference is located but
before
the footnote reference. It should work.-


I placed the cursor a few characters before the footnote reference, on
the same line.


I just tried it again, and the Visual Basic window opened, with the
line "Cut" highlighted and a little box reading "Compile error: Sub or
Function not defined."
-
Please let me know if it doesn't. If not, I will code for placing the
cursor between the footnote reference and the next character. If you
can
get this macro to work, it should be even more convenient for you.-


Indeed.

  #2   Report Post  
Venky62 Venky62 is offline
Junior Member
 
Posts: 19
Default

Okay, rather than your sending the file, I am sending a txt file with the code that I have tested again several times, and it has worked every time. Hopefully, this will work now.

Quote:
Originally Posted by Peter T. Daniels View Post
On Jul 29, 10:48*am, Venky62
wrote:
I can't figure it out. Maybe something was left out while copying my
code? Is there a period before the cut statement? Like ".cut" ?


Nope. It's directly below two lines in green.

Could you upload your document so that I could see where the error is
creeping in?


You want me to upload my normal.dotm template somewhere? Where?

I installed the macro simply by copying your text from the newsgroup
to the clipboard, then to a Notepad file; then copied it from the
Notepad file to the template (following Greg Mayor's instructions,
which have worked all the times people have posted useful macros here
before).

Peter T. Daniels;492930 Wrote:





On Jul 28, 11:19*pm, Venky62
wrote:-
Where are you placing the cursor ? Please try the macro with the
cursor
anywhere on the line where the footnote reference is located but
before
the footnote reference. It should work.-


I placed the cursor a few characters before the footnote reference, on
the same line.


I just tried it again, and the Visual Basic window opened, with the
line "Cut" highlighted and a little box reading "Compile error: Sub or
Function not defined."
-
Please let me know if it doesn't. If not, I will code for placing the
cursor between the footnote reference and the next character. If you
can
get this macro to work, it should be even more convenient for you.-


Indeed.
Attached Files
File Type: txt TransposeFootnote.txt (1.8 KB, 130 views)
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default Wildcard "special" searches

It works. Thank you. (I compared the two texts -- the main difference
is that you added periods to start a number of lines.)

But not when the cursor is placed between note and following
character, only when it precedes a note.

And Ctrl-Shift-T still brings up a box saying that if I want to add a
digital signature, blah-di-blah-di-blah. (I've never had trouble
assigning a shortcut before! The default assignment for Ctrl-Shift-T
is "Unhang," something I have no use for, not "digital signature"!)

Maybe Ctrl-Alt-T will do it ...

On Jul 29, 11:20*pm, Venky62
T wrote:
Okay, rather than your sending the file, I am sending a txt file with
the code that I have tested again several times, and it has worked every
time. Hopefully, this will work now.

Peter T. Daniels;492944 Wrote:


On Jul 29, 10:48*am, Venky62
wrote:-
I can't figure it out. Maybe something was left out while copying my
code? Is there a period before the cut statement? Like ".cut" ?-


Nope. It's directly below two lines in green.
-
Could you upload your document so that I could see where the error is
creeping in?-


You want me to upload my normal.dotm template somewhere? Where?


I installed the macro simply by copying your text from the newsgroup
to the clipboard, then to a Notepad file; then copied it from the
Notepad file to the template (following Greg Mayor's instructions,
which have worked all the times people have posted useful macros here
before).
-
Peter T. Daniels;492930 Wrote:


-
On Jul 28, 11:19*pm, Venky62
wrote:-
Where are you placing the cursor ? Please try the macro with the
cursor
anywhere on the line where the footnote reference is located but
before
the footnote reference. It should work.--
-
I placed the cursor a few characters before the footnote reference,
on
the same line.-
-
I just tried it again, and the Visual Basic window opened, with the
line "Cut" highlighted and a little box reading "Compile error: Sub
or
Function not defined."
-
Please let me know if it doesn't. If not, I will code for placing the
cursor between the footnote reference and the next character. If you
can
get this macro to work, it should be even more convenient for you.--
-
Indeed.--


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

--
Venky62-

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default Wildcard "special" searches

On Jul 30, 3:19*pm, "Peter T. Daniels" wrote:

And Ctrl-Shift-T still brings up a box saying that if I want to add a
digital signature, blah-di-blah-di-blah. (I've never had trouble
assigning a shortcut before! The default assignment for Ctrl-Shift-T
is "Unhang," something I have no use for, not "digital signature"!)

Maybe Ctrl-Alt-T will do it ...


D'oh! I failed to notice that when you click "Customize" to add a
shortcut, it doesn't open to the item that's selected in the list
above, but to the first item in the first list of commands, viz.,
AddDigitalSignature!

And when I tested the new shortcut, I learned that if the period is
already before the next footnote, it'll grab the first letter of the
next sentence. Not really ideal. Takes two Undo's to set it right.
  #5   Report Post  
Venky62 Venky62 is offline
Junior Member
 
Posts: 19
Default

Okay. That means your document can have a mixture or correctly placed footnotes and incorrect ones. Also, there may be footnotes in the middle of a sentence, not only at the end.

This code takes care of that. It searches for a footnote and asks if you want it to be transposed. If you click "Yes" then it will do so, else it will move on. Once it reaches end of document, it will ask you if you would like to do the search again from the beginning of document. If you say "Yes", then it will take you to the beginning and you can start again; if "No" then it does nothing.

If you still want to do it by placing the cursor between the footnote ref. and the next character, that can be done too. But this is more useful.

Quote:
Originally Posted by Peter T. Daniels View Post
On Jul 30, 3:19*pm, "Peter T. Daniels" wrote:

And Ctrl-Shift-T still brings up a box saying that if I want to add a
digital signature, blah-di-blah-di-blah. (I've never had trouble
assigning a shortcut before! The default assignment for Ctrl-Shift-T
is "Unhang," something I have no use for, not "digital signature"!)

Maybe Ctrl-Alt-T will do it ...


D'oh! I failed to notice that when you click "Customize" to add a
shortcut, it doesn't open to the item that's selected in the list
above, but to the first item in the first list of commands, viz.,
AddDigitalSignature!

And when I tested the new shortcut, I learned that if the period is
already before the next footnote, it'll grab the first letter of the
next sentence. Not really ideal. Takes two Undo's to set it right.
Attached Files
File Type: txt TransposeFootnote2.txt (2.4 KB, 151 views)


  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default Wildcard "special" searches

Why do you want to make it constantly _more_ complicated? I asked for
a button to do one thing (a "transpose" function that works when a
footnote reference is involved) and you've given it a multitude of
functions whose utility escapes me.

It didn't occur to me to ask about this earlier (because I hate
endnotes) -- I don't suppose this will work on endnote references as
well? (Not really a problem, because if any author had for some reason
used endnotes instead of footnotes, I'd simply use Convert to fix
them, and then when done Convert them back. A problem might arise,
though, in the rare event that a document has both footnotes and
endnotes.)

On Jul 30, 8:07*pm, Venky62 wrote:
Okay. That means your document can have a mixture or correctly placed
footnotes and incorrect ones.


That would be its state when editing was partly finished.

Also, there may be footnotes in the middle
of a sentence, not only at the end.


If there's a comma after it (an individual item in a list is
footnoted, say), then it needs to be changed; if there isn't (a note
on the subject of a sentence that would be inappropriate at the end of
the sentence, for instance), then the question would not even arise.

This code takes care of that. It searches for a footnote and asks if you
want it to be transposed. If you click "Yes" then it will do so, else it
will move on. Once it reaches end of document, it will ask you if you
would like to do the search again from the beginning of document. If you
say "Yes", then it will take you to the beginning and you can start
again; if "No" then it does nothing.


That sounds like at least as much, if not more, work than no macro at
all. The point is to _simplify_ editing, not to add complications.

If you still want to do it by placing the cursor between the footnote
ref. and the next character, that can be done too. But this is more
useful.


I suspect you've never been a copyeditor ...

On Jul 30, 3:19*pm, "Peter T. Daniels" wrote:
-
And when I tested the new shortcut, I learned that if the period is
already before the next footnote, it'll grab the first letter of the
next sentence. Not really ideal. Takes two Undo's to set it right.


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

  #7   Report Post  
Venky62 Venky62 is offline
Junior Member
 
Posts: 19
Default

Have you even tried it? Or are you feeling it is more complicated? Since you have so many different scenarios, footnote before character, after character, and none, the only way to deal with all of them is to give you the choice whether to transpose a footnote or not. I don't see how that is more complicated than hunting each footnote in the text, placing the cursor exactly between the 2 characters and then running the macro. So try it out and see. Of course, if you have only one footnote to transpose in a whole document, then this may be more work. But then you may as well do it manually. Why request a macro?


Quote:
Originally Posted by Peter T. Daniels View Post
Why do you want to make it constantly _more_ complicated? I asked for
a button to do one thing (a "transpose" function that works when a
footnote reference is involved) and you've given it a multitude of
functions whose utility escapes me.

It didn't occur to me to ask about this earlier (because I hate
endnotes) -- I don't suppose this will work on endnote references as
well? (Not really a problem, because if any author had for some reason
used endnotes instead of footnotes, I'd simply use Convert to fix
them, and then when done Convert them back. A problem might arise,
though, in the rare event that a document has both footnotes and
endnotes.)

On Jul 30, 8:07*pm, Venky62 wrote:
Okay. That means your document can have a mixture or correctly placed
footnotes and incorrect ones.


That would be its state when editing was partly finished.

Also, there may be footnotes in the middle
of a sentence, not only at the end.


If there's a comma after it (an individual item in a list is
footnoted, say), then it needs to be changed; if there isn't (a note
on the subject of a sentence that would be inappropriate at the end of
the sentence, for instance), then the question would not even arise.

This code takes care of that. It searches for a footnote and asks if you
want it to be transposed. If you click "Yes" then it will do so, else it
will move on. Once it reaches end of document, it will ask you if you
would like to do the search again from the beginning of document. If you
say "Yes", then it will take you to the beginning and you can start
again; if "No" then it does nothing.


That sounds like at least as much, if not more, work than no macro at
all. The point is to _simplify_ editing, not to add complications.

If you still want to do it by placing the cursor between the footnote
ref. and the next character, that can be done too. But this is more
useful.


I suspect you've never been a copyeditor ...

On Jul 30, 3:19*pm, "Peter T. Daniels" wrote:
-
And when I tested the new shortcut, I learned that if the period is
already before the next footnote, it'll grab the first letter of the
next sentence. Not really ideal. Takes two Undo's to set it right.


+-------------------------------------------------------------------+
|Filename: TransposeFootnote2.txt * * * * * * * * * * * * * * * * * |
|Download:http://www.wordbanter.com/attachment.php?attachmentid=135|
+-------------------------------------------------------------------+
Reply
Thread Tools
Display Modes

Posting Rules

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 08:48 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"