An implementation of Visual Basic that is built into Microsoft products.
1,636 questions with Developer technologies | Visual Basic for Applications tags
Run-time error "53" window pop out when I use WORD
Why is there a window pop out saying Visual Basic for Application, Run-time error "53" when I open WORD.Ru
Developer technologies | Visual Basic for Applications
Change color of Hebrew cantillation characters
Word options (Advanced) allow me to change color of all diacritics. I would like to change all diacritics to green and then change cantillation marks to red. Cantillation marks are Hex 0591-05AE, or Dec 1425-1454. I wonder if this can be done by ctrl-H,…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
How to fix Run-time error '424;: Object required
Sub SaveC11s() Dim objAttachment As Outlook.Attachment Dim saveFolder As String Dim targetSubjectKeyword As String ' CONFIGURATION: Set your target folder path and subject keyword saveFolder = "\ComptonJenn\Downloads\Current Month…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Excel VBA Like Operator Question
To the Community: Need a little clarification on the VBA "Like" Operator for the below snippet. From reading the language reference, I do not understand why statements "#1. - #4." below returns FALSE when variable "a"…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Cannot set FontName and/or FontSize in an Excel Comment with Visual Basic for Applications
Dear Team, I have Microsoft 365 Personal License I am using macOS Tahoe 26.5, Microsoft® Excel for Mac, Version 16.109.1 (26051717) In a Visual Basic for Applications I am trying to put the font name and text size in a comment block. Translating the code…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
I cannot get VBA in Excel to make the Userform Calculator i created to perform operations on numbers with decimals right
Private Sub cmbdecimal_Click() If InStr(txtDisplay.Text, ".") = 0 Then txtDisplay.Text = txtDisplay.Text + "." End If End Sub ^This is the code i used on the command button for "." I can type a decimal, but the answer the…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
marcros in excel has been blocked please help
Dear Team, I cannot disable my marcros in excel has been blocked and i can't disable this and unblock option is also not showing therefore i can't use my vba excel project please help for disable my macro setting so that i can use my vba in excel
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
please fix the issue
this error was showing
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Update of another workbook with a vba macro
Since last version of excel it is impossible from a workbook to open another one ,make changes and save them and then close the workbook. The process works, but when the workbook is closed the version before changes is back again (file with the initial…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
How to access Properties of objects in Excel VBA
Things seem to have changed in VBA since I last wrote any code. I am designing a small project for home use, using Excel and VBA. I find I can add controls to a userform but I cannot change their properties at design time. For example, I have a…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
How can I read an excel sheet from AccessCan I
Can I open and read an excel sheet from a VB procedure in Access
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Application.Wait
give me an example of Application.Wait in VBA code.
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word Complete the whole Document
Hello from Steve Can the below script please to the whole document as it stops after finding the first instance. Sub Horse_Above_10() With Selection.Find .ClearFormatting .Text = "\) [0-9]{2,} [A-Z]" ' wildcard pattern …
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word find 12 Font only it is also finding Font 10.5
Ho from Steve Can the below script please find 12 Font. Not Font 10.5 Sub Horse_Above_10() With Selection.Find .ClearFormatting .Font.Size = 12 .Text = "\) [0-9]{2,} [A-Z]" .Replacement.Text = "" .Forward =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word Move to next
Hello from Steve ) 10 G ) 11 G Objective find the next What is happening is that it is going back to the beginning What is required please for the script to find the next please Sub…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word find text in window2
Hello from Steve What is required please for the below script to function. Find text in window2 Sub Testing2() Dim i As Integer Dim blnFound As Boolean Selection.Find.ClearFormatting With Selection.Find .Text = "[0-9]{1,}…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word activates Macro
Hello from Steve Objective please is to Activate Second Selection and Activate Third selection using a single macro Meaning push the macro for Top Selection then I will place the cursor for the second selection and push the single macro to actitivate…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word Re-set after the 3rd
Hello from Steve Can the below be re-set after the third selection I do more than one in the same document. When I go to use it the second time in the same document it puts in the third selection' I need it to restart by putting in the first selection…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word 8 REVISION find in second window 8 36951 REVISION
Hello from Steve Objective Window 1 has 8 REVISION Window 2 has 8 36951 REVISION Is it possible please from Window 1 8 REVISION to find in Window 2 8 36951 REVISION Sub Testing2() Dim i As Integer Dim blnFound As Boolean Dim strText As…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
"Word" Needs to stop at the end of the document
Hello from Steve Objective needs to stop at the end of the document Sub Word_to_Excel_Part_One() Dim rng As range Set rng = ActiveDocument.Content With rng.Find .ClearFormatting .Text = "F90" .Replacement.Text = "" …
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.