View Single Post
 
Old 05-28-2024, 06:57 AM
randyspaulding12 randyspaulding12 is offline Windows 11 Office 2021
Novice
 
Join Date: May 2024
Posts: 9
randyspaulding12 is on a distinguished road
Default

Thank you for the prompt replies. I think you can tell I am very amateur to VBA code and to what CoPilot is/can do. Now I know.

The point of the code I am looking for is simple: take a selected list of names from a table and create bookmarks for each of them. So I'm expecting some kind of for loop that goes through the range of selected text line by line and creates a bookmark for each. Does anyone have some REAL sample code I could try?

Example:
Table A:
Column 1 Column 2 Column 3 ...
Row1 Name1
Row2 Name2
Row3 Name3
Row4 Name4


In my word document Table A I select just Name2 and Name3, run the macro and end up with two new Bookmarks: Name2, Name3

Last edited by randyspaulding12; 05-28-2024 at 07:43 AM. Reason: I wasn't clear enough in my example showing I was selecting from a table.
Reply With Quote