starnold007
New Member
- Joined
- Mar 5, 2009
- Messages
- 1
I have a Addin that stores information on different sheets. I want to export the sheets to be able to have a back up of the information. I have been able to 'export' these sheets but I have been unable to 'import' them into my addin. I have been trying to use
masterItem - variable holding the name of the sheet selected from a Userform.
(prompts user to open the backup file he/she wants to import)
filename = application.getopenfilename..........
workbooks.open filename:=filename
Sheets(masterItem).Copy Before: = Workbooks("myaddinsname.xla).Sheets(4)
fyi-- i also want the new imported sheet to be xlSheetHidden.
I think my problem is that addin's are not a part of the Workbooks Collection???
Any help would be appreciated.
masterItem - variable holding the name of the sheet selected from a Userform.
(prompts user to open the backup file he/she wants to import)
filename = application.getopenfilename..........
workbooks.open filename:=filename
Sheets(masterItem).Copy Before: = Workbooks("myaddinsname.xla).Sheets(4)
fyi-- i also want the new imported sheet to be xlSheetHidden.
I think my problem is that addin's are not a part of the Workbooks Collection???
Any help would be appreciated.