An implementation of Visual Basic that is built into Microsoft products.
1,640 questions with Developer technologies | Visual Basic for Applications tags
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
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.
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.
Word Stop at the end of document
Hello from Steve Objective please to loop to end of document. Sub Word_to_Excel_Part_One() Selection.Find.ClearFormatting With Selection.Find .Text = "F90" .Replacement.Text = "" .Forward = True .Wrap =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Office 365 Update version 2604
Anybody else having issues with the latest Update blocking exchanges between Excel and Outlook using the Outlook.MailItem, have rolled back to 2603 and the VBA MAcro is working perfectly again.
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Excel Update Broke PivotCache VBA Functionality — Request for Fix or Escalation
Since a recent Microsoft 365 Excel update ~January 24/25, multiple VBA procedures that interact with PivotCaches and update PivotTables have stopped functioning across our organization. These macros have worked reliably for years and stopped functioning…
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.
Word finding X at the beginning of numerals
Hello from Steve Is it possible please using the below [0-9XL]{5} to also find X at the beginning. For example X9937 Sub Test () Selection.Find.ClearFormatting With Selection.Find .Text = "[0-9XL]{5}" .Replacement.Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Using VBA to select text.
Hello from Steve Is this possible please to select text 5PBPX using VBA Mod moved from : Microsoft 365 and Office | Word | For home | Windows
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
In Excel, I am in need of having more than one dropdown list in a worksheet, and I must be able to make multiple selections in each one.
I am familiar with VBA code and the Data Validation features built into Excel, but I cannot find a way to apply the VBA code to more than one dropdown list. I note that there is no dependency between each of the dropdown lists. In other words, the…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Rename Module
I want to rename a module in my VB project in Excel
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Outlook, Character Counter, VBA
Good afternoon. I'm familiar with the character counter in Word. I checked the customize ribbon tool, and do not see character counter in outlook. At this point, I'd like to do a VBA tool to count characters/spaces in my emails. It's part of a…
Outlook | Windows | Classic Outlook for Windows | For business
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.