Technorati label: VBE, VBA
From: julitta korol, "access.2003.programming. By. example. With. VBA. xml. And. asp", by wordware Publishing, Inc. 2005, p12-p27
Alt + F11 can directly access VBE
To modify the properties of a Form Control in VBE, follow these steps:
First, select the module of the form to be viewed on Project explorer.
Click view object at the top of Project explorer
Test the next Zhejiang Provincial Education Examination Institute for the 2018-year simulation exercise (volunteer) file, found a lot of bugs, want to modify the VBA code, but found that VBA has a project password, do not want to stop, so refer to the relevant information on the Web will be VBA source code extracted, attached here, For the convenience of the need
First of all, the company every month at the end of the request staff to fill out the attendance information, and then sent a template, I think every time to fill in the date and the day of the week such information is more cumbersome, so think of a lazy way, but also made a change to the template style, so that its information display efficiency has been improved.The simple thing to do is to use the VBA features that are available in office to automa
There are many ways to delete empty rows and columns in Exce, relatively simple to delete empty rows, just filter, filter out blank lines, delete them, but it is difficult to delete empty columns. Because you can't filter the deletion by column. Excel does not have this
A feature. Of course you can use a different method, that is, sort columns by column to sort the blank columns together, and then delete, but this method faces the problem of the order of the column is disturbed, thankless. This
Chinese test, often used in writing manuscript paper, Word with the template, but there are many restrictions (such as paper type, number of rows and so on relatively fixed), in the examination papers typesetting is quite inconvenient. After trying, the author found a way to use Word VBA programming to realize the test writing manuscript by drawing the form.
I. Preparation of procedures
1. Start Word, click "Tools" continuously, "macros, record new
You can use Word macro commands to increase your productivity when you edit a document using Word. By default, the security setting for Word macros is high, and macros are automatically disabled when you run the Word Macro command. If you set the Word macro security to Medium, the Word Macro Security warning dialog box pops up every time you run the Word macro. If you set your Word macro security to low to suppress a security warning, you can increase the risk of malicious code or virus damage.
VBA features in Word make Word documents interactive, and in school teaching, you can use Word VBA to make interactive selections in Word documents. To use Word2003 to make a two-item selection Word document as an example, the following steps are described:
Step 1th, create a blank Word document, enter the topic section of the selection question, such as "a complete computer system includes ()", and then s
My previous question stopped for a long time because-I went to write a book.ObjectiveI started working in March 2012 and now I'm six years away. For the past six years, I have never known anything about SQL Server, only the simplest C # programmers have started, stepping back from a nameless outsourcing company to the middle of a larger financial institution, with wages rising to nearly four times times the size of a new job. In the process of struggle, I also go a lot of detours, once very depr
The following is an example of using Excel VBA to connect to Oracle and operate Oracle-related data.To connect to the database through VBA, Excel needs to install the corresponding Oracle client tool and reference the relevant components of ADO. to reference the components of ADO, follow these steps:1. Open the VBA editor and click "Tools" and "Reference" in the
In Excel, you use VBA to add comments to the merged cells, using the AddComment to report directly:Run-time error ' 1004 ': application definition or object definition errorFind a lot of articles have not found how to solve, finally found in AddComment before, first clearcomments a bit, just fineExcel using VBA to add comment to a merged cellIf occur runtime error 1004,Before invoking AddComment, first invo
Here's an example of using VBA to export files, and you can export other places where VBA can be used, such as Excel content.SubExport_file ()DimFS, FT as Object DimTxtname as Stringtxtname="Export_file" SetFS =CreateObject("Scripting.FileSystemObject") SetFT = Fs.createtextfile (Thisworkbook.path "\" Txtname ". SQL") DimSql as StringSQL="This is a example!"ft. WriteLine (SQL) ft. CloseSetFT
In the development of VBA, in order to be able to use functions provided by the system or functions developed in C ++, This article summarizes the call of C ++ DLL by VBA.
1. function declaration
Function prototype:
Dword winapi GetCurrentDirectory (
_ In DWORD nBufferLength,
_ Out LPTSTR lpBuffer
);
The function declaration is as follows:
Public Declare Function GetCurrentDirectoryLib "kernel32" Al
=" Wkiom1wq7ljju30xaadouy1lxmo890.jpg "/>As above, we hide the work cannot be achieved such as hiding the data source, hiding the purpose of not wanting to let other people see the data is right.Here's another way to hide a worksheet, which is to go to the VBA editor and manipulate the properties of the object sheet.First, right-click the worksheet that you want to hide, and then tap View Code to enter the VBA
value based on the row and column number specified in a given range (range reference or array) and returns a cell reference if the source data is a range, or a value in the array if the source range is an array.INDEX (Reference, Row_num, [Column_num], [Area_num])INDEX (Array, row_num, [column_num])Example: extracting from the data table on the left to create a new worksheetE4:index ($C $: $C $8, ROW (A2) *2-1)F4:index ($C: $C $8,row (A2))SMALL takes the specified nth-small valueSMALL (array, K)
There are many ways to delete empty rows and columns in exce, it is relatively simple to delete empty rows, just filter, filter out blank lines, Delete them, But it is difficult to delete empty Columns. Because you cannot filter by column to Delete. This feature is not in Excel. Of course you can use another method, that is, sort by column, sort the blank columns together, and then delete, but this method faces the problem that the order of the columns is disturbed, thankless. This article will
About Excel VBAProgramInterface Programming
○ The Excel VBA program interface is related to its form. For macro loading, a new button or menu must be added. You can click these interface elements to complete the work;
○ For common worksheet programs, you can add required buttons, or directly add buttons, list boxes, and other interface elements to the worksheet. The event processing program is located in the corresponding worksheet of the
(1) In word, multiple files need to be merged. Word itself provides a very simple method. You only need to use the "insert-> file" command to complete this operation.
VBACode: Selection. range. insertfile (afilename, '', false );
(2) However, there may be some problems to insert the file, so the header information is not lost.
For example, some pages of the file I inserted are horizontal, but after the file is inserted.
In fact, it is very easy to solve this problem, that is,
COM (Vb/VBA/script)Call with service tagWCFService
Usage 3WSDLContract
Lazybee(Http://lazybee.cnblogs.com)
We have introduced how to use MEX The service of the contract is marked in Com Calling WCF Service. MEX The endpoint dynamically acquires metadata, which is convenient to use. However, sometimes the metadata of the service may contain information about the application that malicious users can use.ProgramThat is to say, some servi
When working with data in Excel, whether it's using VBA or functions, finding and referencing are two major tasks, the method of the Find series in VBA (Find, FindNext, range.findprevious) Returns a Range object that can be found and referenced at the same time, so it is useful to have some common find usages listed below:Sub Find1 () ' Find in a columnDim KK = Range ("A:a"). Find ("A"). RowMsgBox KEnd Sub=
Recently I have been learning Excel macros and applied them to VBA. VBA has very powerful functions and is easy to learn.If you are interested, you can study with me. If you have good learning documents, I hope you can introduce them to me.
You must add a value for the floating point value.F:
You must add a value for the floating point value. F To indicate that this is a floating point number, otherwis
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.