score:2
Accepted answer
you should be able to use the setrange
method as per below:
set prevrange = wrddoc.bookmarks(prevbmarkname).range
set newrange = prevrange 'have to set the range to something initially
newrange.setrange prevrange.end, prevrange.end
activedocument.bookmarks.add "bmarkname", newrange
Source: stackoverflow.com
Related Query
- Dynamically Create Bookmarks with VBA
- Dynamically create HTML table rows with VBA
- Dynamically create Datasheet from SQL query with VBA in Ms Office Access
- Resize Listobject Table dynamically with VBA
- VBA Create a new workbook with a button click
- Create a new slide in VBA for PowerPoint 2010 with custom layout using Master
- Dynamically Create Dynamic Arrays in VBA
- Dynamically Create Macros (Specifically UDFs) from VBA Code
- Ms Access - VBA - Create Labels Programatically with Size
- Excel VBA create embedded macro with external macro
- Dynamically search for data In an XML file with VBA
- Create powerpoint shape with vba
- Create Footer in Word Doc with VBA and Right Align
- How to create an attribute with specific value if it doesn't exist - VBA
- Looking for issues with dynamically importing / executing / removing excel VBA module
- How to create a IsMissingOrEmptyString in VBA to cope with optional argument?
- Create PDF from different ranges in multiple Excel sheets with VBA
- Create monthly tabs in excel with VBA
- VBA create several textboxes/comboboxes dynamically in userform
- Dynamically Hide/Unhide Multiple Ranges Using VBA With Minimal Lag
- MS Word: Create Table of Figures with two SEQIdentifiers in it via VBA
- Create VBA macro to calculate unique value count with multitple criteria
- Create Outlook Email Body with rows having a particular value using Excel VBA
- Excel VBA create report with grouped values
- Create table in Access vba and populate with results from query
- VBA In Excel to Create Email with Table and Signature
- Issue with VBA code to create Pivot from column of data
- Create a VBA version of dictionaries with 2 values per key
- Is it possible to create an AutoKeys macro with VBA in Access?
- Create BMP image with VBA
More Query from same tag
- How can I populate combo box from a database query?
- Dynamic field population VBA
- VBA - UserForm - How to restore default Label caption while loaded
- Find which rows has longest Cell in a given column?
- Populate date cells based on one cell's value?
- Selecting all odd rows from 3 to 305
- Schedule complex Macro(.xlsm) Task on Task Scheduler
- Excel VBA how do I make the Enter key behave like the Tab key
- Is there a way to use the same code in multiple VBA scripts?
- Working on Internet explorer form in vba
- Webscraping using VBA into excel
- PowerPoint to PDF: Minimum size option
- Removing a string that includes CRLF characters from body of e-mail
- Word Tables import to Access - adding additional character
- VBA programming in Excel withOUT ActiveCell
- Last two rows not formatted, but are copied over correctly, with no reason why
- Parsing JSON in Excel VBA
- How to output value based on whether current date is before October or not?
- Find the index number of a builtin/userdefined style without creating a lookup/hash table
- Copy and range of cells as a picture with a defined width Locked aspect ratio
- VBA Loop through rows but fails to exclude previous row contents
- Adding text to a combobox
- How to get Collection of Chart Elements in Word using VBA?
- Select range based on from/to date critera
- Find & Replace from a list
- VBA Excel Overflow error
- VBA loop through comments with specialcells - multiple iterations
- Clear entire row data except the first row using excel VBA
- Insert multiple rows when range contains specific text
- Delete Blank or zero columns in a range