![]() VbCrLf & " in the document: " & ActiveDocument.Name, vbOKOnly, "Number of occurences")Įnd Sub I'm still curious to know if there is a more elegant way to get the count of the number of occurences of a string in a Word doc. ![]() Mental Ability & Reasoning ability 20 Marks 2. Response = MsgBox("I found: " & Str(arr(1)) & " instances of the string: " & txt & _ DSSSB TGT Computer Science exam pattern Tier 1 Exam Pattern The Tier 1 of the exam will consist of 5 papers of General Awareness, Mental Ability, Reasoning Ability, Hindi and English Language each consisting 20 marks and a paper related to the subject (300 marks) Section I S. Lgth = InputBox("Length of string to return") Here is a solution to my counting question that works better, based on work by Malcolm (mdmackillop) in the Excel forum and an assist he got from here ().ĭim txt As String, Lgth As Long, Strt As Long
0 Comments
Leave a Reply. |