Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2024, 10:40 AM
John9210 John9210 is offline Create macro without using the Recorder Windows 7 64bit Create macro without using the Recorder Office 2007
Advanced Beginner
Create macro without using the Recorder
 
Join Date: Feb 2015
Posts: 38
John9210 is on a distinguished road
Default Create macro without using the Recorder


How do you create a macro in Word 365 without using the Recorder? I would like to copy and paste macro steps that I have in a Word document into a new macro. I can't find a setting for creating a new macro without deleting an existing one.
Reply With Quote
  #2  
Old 06-11-2024, 11:23 AM
Italophile Italophile is offline Create macro without using the Recorder Windows 11 Create macro without using the Recorder Office 2021
Expert
 
Join Date: Mar 2022
Posts: 536
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Open the Visual Basic Editor (Alt+F11) and type. E.g.
Code:
Sub NameOfMacro()
‘Lines of code
End Sub
Reply With Quote
  #3  
Old 06-11-2024, 12:30 PM
Guessed's Avatar
Guessed Guessed is offline Create macro without using the Recorder Windows 10 Create macro without using the Recorder Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

As Italophile said, the quick way to open the VBA editor is to press Alt-F11

This might help too
How to Run VBA Code in Your Word
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #4  
Old 06-11-2024, 08:19 PM
Charles Kenyon Charles Kenyon is offline Create macro without using the Recorder Windows 11 Create macro without using the Recorder Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,453
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

See also: How to Modify a Recorded Macro by Jay Freedman
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Macro Recorder does not record font colour selection Ramkay Word 1 12-02-2020 07:48 AM
Create macro without using the Recorder Accessing the format tab with the macro recorder reneemettrie Word VBA 6 01-10-2020 12:03 PM
Create macro without using the Recorder copying text with Word's macro recorder cheech1981 Word VBA 4 11-29-2018 09:25 PM
Create macro without using the Recorder Macro recorder and ShowFieldCodes Jennifer Murphy Word VBA 1 11-04-2012 01:55 AM
Create macro without using the Recorder Picture properties bug in Word 2010 Macro Recorder ralphpickering Word VBA 5 10-24-2012 10:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:40 PM.


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