![]() |
|
#1
|
|||
|
|||
![]() Code:
Sub MyBullet() ' ' MyBullet Macro ' ' ' The variable "char" will contain ' the number of characters moved. Dim char As Long char = Selection.StartOf(Unit:=wdParagraph, Extend:=wdMove) Selection.TypeText Text:=vbTab & "•" & vbTab Selection.Style = ActiveDocument.Styles("MyBullet") End Sub Last edited by macropod; 09-16-2024 at 07:56 PM. Reason: Added code tags |
#2
|
|||
|
|||
![]()
What is it you want to do?
Why are you using a macro to do it? |
#3
|
|||
|
|||
![]()
The macro inserts a special bullet into the document. Why a macro? Ans: quick access to create bullets as I type.
|
#4
|
|||
|
|||
![]()
You’re attempting to use a sledgehammer to crack a nut.
Just create, or modify, a bulleted style in your document. Assign a keyboard shortcut to that style. Result, quicker access to correctly create bullets as you type. |
#5
|
|||
|
|||
![]()
Italaphile is correct.
Another method would be to save as a building block (also with a keyboard shortcut) or an AutoCorrect entry. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Perfect macro not working when its code is inserted in larger macro | RobiNew | Word VBA | 3 | 10-18-2023 03:19 AM |
Macro not working | harry | Outlook | 3 | 12-12-2022 12:22 AM |
Need Help with this Macro-Partially Working | rsrasc | Excel Programming | 10 | 09-10-2020 02:38 PM |
Just one macro not working | Ulodesk | Word VBA | 1 | 04-01-2019 09:16 AM |
![]() |
Ulodesk | Word VBA | 1 | 07-18-2012 04:01 PM |