Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2022, 10:44 AM
olson.jacob720 olson.jacob720 is offline VBA to identify alpha numeric values in a word document and create a list of those values Windows 10 VBA to identify alpha numeric values in a word document and create a list of those values Office 2016
Novice
VBA to identify alpha numeric values in a word document and create a list of those values
 
Join Date: Apr 2022
Posts: 1
olson.jacob720 is on a distinguished road
Default VBA to identify alpha numeric values in a word document and create a list of those values

My group has found and tweaked to our preferences a VBA Word Macro that is used to extract any text that has an alphanumeric value such as (P12345) from word documents and place that list in a new word document. The macro selects everything in the open document, copies all of the text, then replces the text back in as plain text to remove all formatting. It then searches for any value that is alphanumeric (ex. P12345) and highlights that text. It will then search for and copy all of the alphanumeric values, open a new word document, and paste the values into the new document unformatted. We are looking to expand on this macro in order to better meet our needs for a new project. We are trying to have the macro save the new document with the extracted list with the title of the original document (or something similair such as a subfix added to the original title). My group has very minimal coding experience/expertise, but we have been able to edit some areas of the existing code we found.



A different approach could be for a macro that would identify all alphnumeric values, and delete everything in the document EXCEPT those values, leaving the list of alpha numeric values. We would then like if the macro would save the file and close it.

We are looking for these functions to try to create a .bat so that we can run this macro with a group of documents housed in a folder. The first step is to get the macro fitted to our needs, and then we will be able to research creating the batch process.

Any help would be greatly appreciated.

The existing code is attached as well as images of what the macro does. I have also attached a sample file that we would use with this macro.
Attached Files
File Type: txt Alphanumeric Extraction VBA Code.txt (1.6 KB, 11 views)
File Type: docx Test1234.docx (40.6 KB, 7 views)
File Type: pdf Example of Macro Results.pdf (149.6 KB, 8 views)
Reply With Quote
Reply

Tags
macro in word, vba code, word 2016-64



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to identify alpha numeric values in a word document and create a list of those values Numeric Values jrt Word VBA 2 11-09-2014 01:28 PM
Convert alphabets to numeric values kjxavier Word 3 07-06-2014 05:34 AM
Convert numeric values with decimals to alphabets kjxavier Word 1 07-06-2014 01:44 AM
VBA to identify alpha numeric values in a word document and create a list of those values Sorting Alphanumeric & Numeric values slovenc0417 Excel 2 06-07-2013 07:58 PM
VBA to identify alpha numeric values in a word document and create a list of those values [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft