Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2021, 05:42 AM
TA9523 TA9523 is offline Copy words from word to excel Windows 10 Copy words from word to excel Office 2016
Novice
Copy words from word to excel
 
Join Date: Jan 2021
Posts: 8
TA9523 is on a distinguished road
Default

I tried to running it from Word, in this case error "Argument not optional" didn't occur, but whatever excel shows "no matches" for all documents. I think problem with following part of code:
Quote:
Do While .Execute(findText:=CStr(vID(i)) & "[0-9]{1,}", MatchWildcards:=True)
How I said before, when I changed this part of code to this:
Quote:
Do While .Execute(findText:=CStr(vID(i)) & "<*>", MatchWildcards:=True)
everything works excellent, except the cases where TAGs have two or more "-" . In this case information is copied up to the second "-". Could you suggest how can I fix it?
Reply With Quote
Reply

Tags
ms excel 2016, ms word, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy words from word to excel Copy & Paste Word Doc from Excel VBA RMerckling Excel Programming 4 04-18-2018 03:57 PM
Copy words from word to excel copy a specific words to excel list romanticbiro Word VBA 12 12-03-2014 05:12 AM
Copy data from Word into Excel chinchee Word VBA 18 05-23-2014 05:25 AM
Copy and paste words on right side of page Videolife Word 3 01-26-2013 12:54 PM
how to copy all ms word tables into excel rehan129 Word 0 01-28-2012 10:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:04 AM.


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