forgive me for being ignorant. A few months ago, I learned that there are many shortcuts for pressing CTRL + a key in 2005, the most common commands are Ctrl + k, CTRL + C, and CTRL + k, CTRL + U. Now I suddenly want to use it in this book, only 6.0. I found a method, which is feasible as follows:
open notepad, enter the following Code :
sub commentblock ()
with activedocument. selection
'select the text from the document opened in the current window
. replacetext "% ","//", dsmatchregexpb
'added at the start position // comment
end with
end sub
sub uncommentblock ()
with activedocument. selection
. replacetext "% //", "", dsmatchregexpb
'Similarly, remove the annotator found in the selection text header
end with
end s UB
install and use this macro file:
1. Name this file commentmac. DSM, save it to O: \ vs6 \ common \ msdev98 \ macros under your vs installation directory;
2. Right-click the toolbar of vs6, click customize
1), add-ins and macro files properties page, and select commentmac.
2) select the keyboard property page, select macros under category, and select the shortcut key for commands
.
top