VBA (Visual Basic for Application ):
O 'Reilly VB VBA concise tutorial
OfficeVBAProgrammingCollection of manuals (CHM)
Microsoft Office VBA Language Reference
Microsoft Office 2007 system VBA programming
Office VBA programming skills
The Oracle InStr function appeared in the recent project, so I looked up information about it on the Internet.Usage of InStr and SUBSTR in OracleUsage of instr in Oracle:The format of the InStr method isINSTR (source string, the string to find, starting with the first few characters, to find the ordinal number of the f
Oracle InStr functions
For the InStr function, we often use this: to find the position of a specified substring from a string. For example:
Sql> Select InStr (' Oracle ', ' or ') position from dual;
POSITION
----------
1
Starts at the first position of the string ' Oracle ', looking backwards for the first occurrence of the substring ' or '.
In fact,
Start today with "Blue Fantasy" video learning VBAThe macro is actually the operation stepRecorded macros are automatically generated by VBAIn VB, you can write your ownYou can specify a macro by using the form button1. VBA Objects' 1, workbooks' Workbooks represents the workbook collection, all workbooks, Workbooks (n), which represents the nth workbook that has been opened' Workbooks ("Workbook name")' ActiveWorkbook the workbook that is being manip
The code below can be used to delete the module which houses the Code. In other words, it deletes itself after running once.
You will have to goTools>Macro>Security-Trusted publishersAnd check trust accessVisual Basic EditorBefore running the code. Change"Module1"To suit.
Sub deletethismodule ()
Dim vbcom as object
Msgbox "hi, I will delete myself"
Set vbcom = application. VBE. activevbproject. vbcomponents
Vbcom. Remove vbcomponent: = _
Vbcom. Item ("module1 ")
Rearrange strings
InStr left LTrim mid right RTrim trim like
Working with strings
Split Jion
Splitting and connecting strings
InstanceSub StrComp operation ()MsgBox StrComp ("ABCD", "ABCD", 1) ' parameter 1 in text comparison, case-insensitive, return 0, representing equalityMsgBox StrComp ("ABCD", "ABCD", 0) ' parameter 0, in binary comparison, returns-1, indicating that the former is less than
Original source: http://www.cnblogs.com/Charltsing/p/EncryptVBACode.htmlVBA code encryption is a commonplace issue, and since my VBA dumper was released, any encryption at the office level has lost its meaning. So, many people began to move to the VB package or upgrade to Vsto,delphi and other languages. However, for the vast majority of Vbaer, the problem of re-learning a language is far more than the benefits of developing
You can use the InStr function to judge a string to determine whether it contains the specified character.
Its syntax is:
InStr (Sourcestring,deststring,start,appearposition). InStr (' Source string ', ' target string ', ' Start position ', ' first occurrence ')
Where sourcestring represents the source string;
Deststring represents a substring to look for in the
Advanced Knowledge points1. SQL query Statements and ADO2. Regular expressions and net catch3. Forms and Controls4. API class module and so onSorosayLinks: https://www.zhihu.com/question/26078625/answer/132542043Source: KnowCopyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.1 hoursFamiliarity with data types, variables, constants, and operators1. Understand what data types
Original source: http://www.cnblogs.com/Charltsing/p/unviewable.htmlqq:564955427Email: [Email protected]I was asked to unviewable+ VBA to protect the VBA code can be cracked, so I went to the author's website to see a bit (URL).This tool protects the VBA code fairly well, but there are still fatal problems that can be easily exported.Part of the code in the expor
INSTR (source string, target string, start position, match ordinal)
In Oracle/plsql, the InStr function returns the position of the string to be intercepted in the source string. Retrieves only once, that is, from the beginning of the character to the end of the character.
The syntax is as follows:
InStr (string1, string2 [, Start_position [, Nth_appearance]])
INSTR (source string, target string, start position, matching serial number)In Oracle/PLSQL, The instr function returns the position of the string to be truncated in the source string. It is retrieved only once, that is, from the start of the character to the end of the character.Syntax:Instr (string1, string2 [, start_position [, nth_appearance])Parameter Analysis:String1Source string to be searched in thi
Record a VBA-based data conversion tool for planning and writing, and plan vba
Because the table structure planned for calculation is not necessarily the same as the data table structure actually used by the program, sometimes data conversion is often required. Convert the table to the format required by the program, and then import the table to the database. This is also the planning of a table with multip
Iamlaosonghttp://blog.csdn.net/iamlaosong/article/details/18458253The function that takes the current date in VBA is date, the function of the current time is now, and the current date and time are now. the functions for converting dates to years and days are: year, Month, day, values that can be taken with date or now. The functions of time conversion to minutes and seconds are: Hour, Minute, Second, the value that the parameter can be taken out
Source: Tianji BLOG
I have been learning asp for some time. I have been writing my own program for the past few days and have encountered many problems. I have to consider some of the current vulnerabilities, for example, 'or and 1 = 1 and so on! Let's talk about how to block this vulnerability today!I remember reading an article (I don't remember when I saw it). He used the instr function, which should be like this.
If
Option Explicit ' VBA Script that gets info on the currently selected email using propertyaccessor and various syntaxes ' (s EE other scripts at http://www. Gregthatcher.com-Ways to get mail properties) ' property Tag Syntax looks like this http://schemas.microsoft.com /mapi/proptag/0x0005000b ' property Tag Syntax are used for Outlook ' Properties ' (defined by Outlook Object Model) ' Propert Y ID Syntax looks like this http://schemas.microsoft.com/m
. StartPosition=formstartposition.centerparent; InputBox. Text=Sheadtext; if(shistorytext!="") {Inputbox.tbData.Text=Shistorytext; } InputBox. ShowDialog (); returnInputbox.tbData.Text; } }4. Evaluate calculation by the formula in Excel VBA /// ///computes a string using the Evaluate method of VBA in Excel/// /// /// Public Static DoubleCal ( This stringstr) { varApp =
Instr usage in Oracle:The format of the instr method isInstr (source string, the string to be searched, starting from the nth character, to find the nth matching serial number)Returns the location found. If not, 0 is returned.For example, in instr ('upgrade floor ', 'or', 3, 2), the source string is 'upgrade floor', and the string is 'or ', search for "or" from t
Usage of instr in Oracle:The format of the InStr method isINSTR (The source string, the string to find, starting with the first few characters, to find the ordinal number of matches)Returns the location found, or 0 if it is not found.For example: INSTR (' CORPORATE FLOOR ', ' or ', 3, 2), the source string is ' CORPORATE FLOOR ', look for ' or ' in the string, lo
Memo by:1, VBA to take the number of columns:For example, how many columns are used for the second row: Cells (2, Columns.count). End (xlToLeft). Column: Explanation: Mainly the end method, which is illustrated in VBA: Returns a Range object that represents the cell that contains the end of the area of the source range. is equivalent to pressing the end+ up ARROW, end+ down ARROW, end+ left arrow, or end+ r
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.