Just create another variable to hold the opened file and assign it when you open it:
![]()
Dim OtherFile As Workbook Set OtherFile = Workbooks.Open(Filename:=JnlReg)
You can then refer to it as required.
Dom
Just create another variable to hold the opened file and assign it when you open it:
![]()
Dim OtherFile As Workbook Set OtherFile = Workbooks.Open(Filename:=JnlReg)
You can then refer to it as required.
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks