Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-16-2024, 08:04 AM
John9210 John9210 is offline Macro not working Windows 7 64bit Macro not working Office 2007
Advanced Beginner
Macro not working
 
Join Date: Feb 2015
Posts: 38
John9210 is on a distinguished road
Default Macro not working

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
Reply With Quote
 



Similar Threads
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
Macro not working Fraction macro not working Ulodesk Word VBA 1 07-18-2012 04:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft