I. Excel

① Excel document structure

Insert ComboBox reference to list use name alias

Form Controls

ActiveX Controls

⑤ Delete Shapes (Form Controls / ActiveX Controls / Picture)

⑥ Reference

- https://vbabeginner.net/

- https://www.automateexcel.com/vba-code-examples/

- https://www.excel-easy.com/vba.html


II.VBA

① Application_produce

 ・Disable dialog alerts when close, save, ... workbook

    ・InputTextBox

Data_type

    ・Basic data type: int, long, double, string, boolean, object

    ・Enum

    ・User define struct: type

    ・Array

    ・Dictionary

Debug_print

    ・How to use Debug.Print

④ Decisions

    ・If else

    ・Select case

⑤ Environ_produce

   ・Get value of environment variable 

File_folder

   ・Get link folder

   ・Check folder / file exists

   ・Scan files in folder

File_folder_dialog

   ・Select file dialog

   ・Save file dialog

   ・Select folder dialog

File_ReadWrite

   ・Read file

   ・Write file

Goto_label

   ・Goto

   ・Label

Loop_process

   ・For / For Each

   ・While

   ・Do While, Do Until

  ・Exit Do, Exit For

Sub_function

   ・Sub and Function

   ・Input parameter with ByVal and ByRef

With_produce

   ・Using With tag for workbook, worksheet, ....

Workbook_produce

   ・Structure of excel document: Workbook, Worksheet, Cell/Range

   ・Add new / open / save workbook

   ・Active, list all workbook

   ・ThisWorkbook / ActiveWorkbook

Worksheet_produce

   ・Select / copy / list all worksheet 

   ・ActiveSheet

Worksheet_Cell_Range

   ・Select Rows / Columns

   ・Cells / Range

   ・Determine last row / column ussing Cell(i,j).End 

   ・Find text

   ・Change Columns address by number ⇔ text

⑯ WScript_shell

   ・Run shell command and get return code

   ・Run shell command and get output string

 ※Command run in background without window

UserForm

Access Window Registry

Access SQL database

On Error



Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Lập trình hệ thống nhúng Linux . Powered by Luong Duy Ninh -