1. Excel tools/macro/analysis tools/There are indeed similar functions in which the decimal number can be easily converted to binary. However, the fatal disadvantage of this function is that it can only be replaced.
-512 ~ An integer between 511 and beyond this range.
Therefore, we can only use VBA to write an available function.
2.2.alt + F11 orTool/macro/Visua
From hereNumber-to-column label: Split (Cells (1,1). Address (1,0), "$") (0) ' Replace 1-256 with red 1 toCells (1, a) Select a cell in column A of the corresponding first row;The return value of address is the absolute address of the cell, such as $A$1, A column 1 row;It has 4 parameters, let's get straight to the front two, the first is the absolute path of the line, the default is true, the second is the absolute path of the column defaults to FalseA:cells (1, 1). Address () "$A $"B:cells (1,
In Excel, you create the hyperlink code in bulk (connect to sheet in the current document), and in column B in Sheet1, you create a series of hyperlinks that are the other sheet in this document, such as creating a macro under Sheet1 code as follows.SUB Macro 1 ()Dim Temp, Temp2Dim I, Jj = 1For i = 5 to 74temp = "' G" J "'! A1 "Temp2 = "G" JRange ("B" i). SelectActiveSheet.Hyperlinks.Add anchor:=selection, address:= "", Subaddress:=temp, texttodis
The function of the following code example is to read the contents of an XML file in Excel by using VBA code.
Dim rst as ADODB. Recordset
Dim Stcon As String, Stfile as String
Dim I as Long, J as Long
Set rst = New ADODB. Recordset
Stfile = "C:dzwebs.xml"
Stcon = "provider=mspersist;"
With RST
. CursorLocation = adUseClient
. Open Stfile, Stcon, adOpenStatic, adLockReadOnly, adCmdFile
Set. ActiveC
In Excel, using the simple visualization method is difficult to filter by color, so we can only use VBA code to implement it.
The following code has the function of hiding the column data of the current cell with the row of the current cell in addition to the first row, the header column of the data.
If you have other requirements, please modify the code yourself.
Sub Filtercolor ()
Dim Userow, AC
User
Directory
AutoFilter
Binding
Cell Comments
Cell Copy
Cell Format
Cell number Format
Cell Value
Cell
AutoFilter
1. Confirm that the current worksheet has automatic filtering enabled
Sub filter() If ActiveSheet.AutoFilterMode Then MsgBox "Turned on" End If End Sub
When cells in a worksheet use the AutoFilter feature, the AutoFilterMode value of the worksheet will be true or false.
2. Using the Range.autofilter method
Sub Test() Worksheets("Sheet1").
Functions of Char, CHR, ChrW three functions: All three functions take the character code as the parameter and return the character corresponding to the code.
A char function can be used in a formula
Where the char function is a worksheet function that can be used in an Excel formula, you can return the character corresponding to the ASCII code, with a parameter range of 1~255, such as char (= "A"). Retur
Original: Excel's Range object (C #)The Range object is the most frequently used object in an Excel application, and you need to represent it as a Range object before you manipulate any area within Excel, and then use the methods and properties of the
1. The first way to draw a border in Class\sysexcelrangeThe idea of using Excel to record macros to a batch of cells to draw the VBA code, the object into a COM object in AX, the basic VBA code can also be installed as Microsoft Dynamics AX content. Public voidBorderLine () {Com borders; Comvariant Linestyle,weight,colorindex; intXledgebottom =9; intXlcontinuo
VBA to set access rights
We can also use the VBA code, set the password, when editing the SHEET1 worksheet a1:e10 cell range, automatically pop-up enter the password prompt box, the password is correct, the cell is activated, otherwise, the contents of the cell can not be changed. The specific methods are as follows:
To execute the tools → macros →visul basic
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.