Hello Everyone,
I resolved the issue by adding the DoEvents function after the copy/paste actions in the code. Below is the updated code, which retrieves data from all tables available in a Word document.
GetAllTables.vb (1.8 KB)
Alternatively, if you want to extract specific tables only, you can use the below code by passing the required table index in line 32.
GetSpecificTablesByIndex.vb (2.8 KB)