Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2025, 10:15 AM
stusic stusic is offline VBA to Copy Text Between Heading Styles to New File Windows 10 VBA to Copy Text Between Heading Styles to New File Office 2021
Novice
VBA to Copy Text Between Heading Styles to New File
 
Join Date: Jan 2025
Posts: 4
stusic is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
Your code is incorrect. The code linked to by macropod is:



Code:
Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\HeadingLevel")
You can learn more about predefined bookmarks in Word at Predefined Bookmarks | Microsoft Learn

Oh wow, a typo. I read it as "HeadingLevel1" and still messed it up, lol. Thanks, I appreciate it.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop styles from being copy pasted along with text Word_fail Word 4 07-10-2017 05:50 AM
Style for Text Changes from Normal to Heading 1 when Copy-Pasted Basia Word 8 08-15-2015 02:32 PM
VBA to Copy Text Between Heading Styles to New File Heading styles with text formatting othromas Word 9 11-13-2013 03:10 PM
VBA to Copy Text Between Heading Styles to New File Styles: Heading 4 stuck at same heading number Hallet Word 1 05-31-2012 02:37 PM
Copy + Paste from Word to Word WITHOUT heading styles altjx Word 4 04-18-2012 12:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:10 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