Use macro in VC for pressing

Source: Internet
Author: User

I learned it during training a year ago and it has never been used. Recently I used it, which is very interesting.

Edit macro
In VC's menu tools, click macro
You can edit and record macros...
First, I recorded
Then edit it. VBScript is used.
I don't know. I checked it online, but it's not hard. I messed up it myself.

'------------------------------------------------------------------------------
'File Description: new macro file
'------------------------------------------------------------------------------

Sub add ()
'Description: A description was not provided.

'In in recording
Activedocument. Selection = "// snail Add"
Activedocument. Selection = Date
'End recording
End sub

This function is used to add time after // snail add, as long as it is added by meCodeI don't need to repeatedly write "// snail Add ".

2. Add to button
Tools --> customize
Select macros for the left category in command
The macro you added appears on the left. Drag it to the toolbar and select an icon.
You can also drag it to the menu.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.