View Single Post
 
Old 05-21-2017, 09:22 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Your code looks like it is fragments of larger code.

Where did you create the xlApp object?
Where is the path for the "File Name.xlsx" file?
When was the UserForm2 initialised and TextBox1 populated?

I see Graham has resolved these issues for you - study his code carefully to see what the missing pieces were.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia

Last edited by Guessed; 05-21-2017 at 09:25 PM. Reason: Seen graham's code
Reply With Quote