An implementation of Visual Basic that is built into Microsoft products.
1,629 questions with Developer technologies | Visual Basic for Applications tags
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
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 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.
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.
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.
vba: I would like to add bold attribute to certain words (names) in an array
Hello from Steve I would like to please add bold text Sub Rename_Trainers() Dim FindArray As Variant Dim ReplArray As Variant Dim i As Long FindArray = Array("RICHARDSON NORV", "D & B WEATHERLE", "THURLOW O'MALLE",…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
vba: Compile Error: Expected variable or procedure, not module
Hello from Steve Compile error: Expected variable or procedure, not module Sub AddZeroBeforeThreeDigits() With Selection.Find .ClearFormatting .Replacement.ClearFormatting ' Find any 3-digit number as a group .Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Worksheet protection for users
I want to protect worksheets for users and grand vba all rights to adjust cells and add and delete listrows on tables
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word Find second occurrence
Hello from Steve I have two "Word Files: opened Window 1 and Window 2 Objective please is to find second occurrence and selecting the text to copy using the below script Window 1 7 PLATINUM NORWAY Now find using the below script to find it in Window…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word How to loop
Hello from Steve How do I put in the below Script please Sub Scratched() Selection.Find.ClearFormatting With Selection.Find .Text = "Scratched" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop …
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Excel Row Height
Hello from Steve I would like please only Row 1 to Row 300 to have row height adjusted. Sub RowHeight() Cells.Select Selection.RowHeight = 20.25 End Sub Mod moved from : Microsoft 365 and Office | Excel | For home | Windows
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word dollar blue no hightlight
Hello from Steve I need the below please dollar blue no hightlight Sub Dollar_Dollar_Blue_No_Highlight2() Selection.Find.ClearFormatting Selection.Find.Font.Size = 12 With Selection.Find .Text = "$" .Replacement.Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word Color Red and Highlight Yellow
Hello from Steve I would like to please have the below script Color Red and Highlight Yellow Sub Dollar_Colour_Red_Bold() Options.DefaultHighlightColorIndex = wdYellow With Selection.Find .ClearFormatting .Font.Size = 12 .Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
vba: Find and replace only one.
Hello from Steve Find and replace on a single find. VBA Sub AddZeroBeforeThreeDigits() With Selection.Find .ClearFormatting .Replacement.ClearFormatting ' Find any 3-digit number as a group .Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
trying to open a document in Word VBA using Document.Open command, command failed
got runtime error 4198, command failed; filename and path much less that 219 character limit
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Word if not found then
Hello from Steve Objective if not found then move to next Sub Moving_Numerals() Application.ScreenUpdating = False Do Selection.Find.ClearFormatting Selection.Find.Font.Size = 12 With Selection.Find .Text = "|" .Replacement.Text =…
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.