Edit the Macros Animation tutorial in an Excel table

Source: Internet
Author: User

Excel2003 Introductory Animation Tutorial 58, edit macros in Excel tables.

Demo Animation

Operation Steps

If you are familiar with the language of the VBA program, you can edit the macro directly in Excel is more convenient, the macro code is also simpler.

Go to the Visual Basic Editor window by executing the tools → macros →visual basic Editor command.

In the Project Explorer window on the left, select the workbook where you saved the macro, and then follow the Insert → module command to insert a new module (Module 1).

Enter or copy and paste the relevant macro code into the editing window on the right.

Note: The structure of the macro is:

SUB Macro Name ()

Related code

End Sub

When the input is complete, close the Visual Basic Editor window and return.

In this case, we directly edit the macro to delete the first 4 columns of the current row of cells, and the system does not give relevant hints. Let's run a look at the effect.

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.