View Single Post
 
Old 11-19-2022, 02:09 AM
pilucs pilucs is offline Windows 10 Office 2010
Novice
 
Join Date: Nov 2022
Posts: 2
pilucs is on a distinguished road
Arrow Vba word macro erase rows from tables

Hello everyone,
I need some help.
I premise that I am very ignorant about VBA & Macros and I apologize infinitely.
I wanted to ask if there is a VBA macro to solve my two problems.

1) I have 63 word files, all with the same layout. In each of them, there are two tables, in each table, rows 2,3 and 4 are not needed by me and should be deleted.
Is there a macro to do this instead of opening the files one by one and deleting the above rows manually?

2) I have a word file where there is a paragraph that I need to insert in each file. The paragraph was created with mail merge and contains different data for each word file where it needs to be copied.
Is there a VBA macro such that by reading the unique name of the word file (in my case it is a code), can copy the text produced by mail merge into each individual file?

Thank you all for the help and please do not hesitate to write to me if something is not clear.
Dario.
Reply With Quote