B
BRUCE HAMILTON
Is there a way, using VBA, to open an existing file, select a table in the file, copy the table, and close the file...without the user seeing anything?
I have a document set up as a template with a command button in an existing table. Clicking on the command button brings up a UserForm with several selections available. Clicking on one of the selections will....1)Open an existing file, 2)Navigate to the table in the file, 3) Select the table, 4) Copy the table, 5) Deselect the table, 6)Close the file, 7) Paste the copied table into a cell in the template. It works as is right now, but everything happens on screen, I would prefer to have it all happen "behind-the-scenes" so to speak so the user does not have to see anything happen except the copied table show up in the template table.
Any suggestions...help?
I have a document set up as a template with a command button in an existing table. Clicking on the command button brings up a UserForm with several selections available. Clicking on one of the selections will....1)Open an existing file, 2)Navigate to the table in the file, 3) Select the table, 4) Copy the table, 5) Deselect the table, 6)Close the file, 7) Paste the copied table into a cell in the template. It works as is right now, but everything happens on screen, I would prefer to have it all happen "behind-the-scenes" so to speak so the user does not have to see anything happen except the copied table show up in the template table.
Any suggestions...help?