Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 02-29-2024, 01:19 AM
RobiNew RobiNew is offline Remove normal columns and their content in main story range Windows 10 Remove normal columns and their content in main story range Office 2016
Competent Performer
Remove normal columns and their content in main story range
 
Join Date: Sep 2023
Posts: 200
RobiNew is on a distinguished road
Default

Hi, Vivka! Thank you very much for your code variant. Except for "wdGoToPage, PgNum" (which should be "wdGoToPage, Name:=PgNum") it works all right. However, like mine it deletes all the pages of the docx when inserted into a larger (very large) macro.
If I use a Selection version of the code, it works also when inserted into the larger macro. Surely there must be a way to make the Range version work irrespective of the code context!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use a table in appendix to determine content of main document? MattMurray Word 3 07-19-2022 09:16 AM
Remove normal columns and their content in main story range Run Script to remove carriage returns on certain columns ryanjohnsond@gmail.com Excel Programming 34 09-03-2014 10:43 PM
Remove normal columns and their content in main story range Normal sort not bringing along other columns Dave Fraser Excel 2 06-06-2014 11:48 AM
Remove normal columns and their content in main story range Using range object to work with multiple columns kjworduser Word VBA 1 11-01-2013 03:03 AM
Remove normal columns and their content in main story range How to remove blank rows from a specified range? Learner7 Excel 1 04-19-2011 02:45 AM

Other Forums: Access Forums

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