|
-
Apr 4th, 2006, 09:40 AM
#1
Thread Starter
New Member
[Resolved] copy a file without saving
Is there a way, using Automation with Excel, to open a workbook, and then disassociate the workbook from the file it came from? Maybe it'd work to just change the workbook name, if that's possible.
What I want to do is, open a file multiple times, pasting different sets of data to it, without saving it. The opened files are meant to be used and saved by users as they see fit, and I don't want there to be anything "invisible" happening that they'd have to bother with, such as excel files lying around.
Right now a dialog comes up on all the files after the first informing the user that they can only have one version of the workbook open at once.
Thanks
Last edited by l33t_c0w; Apr 4th, 2006 at 10:54 AM.
-
Apr 4th, 2006, 09:59 AM
#2
Re: copy a file without saving
Create a xlt Template. using the EOM you can open the file in it over and over again since the template will append th file name with a 1, 2, 3,... Like Book1, Book2 Book3...
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 4th, 2006, 10:54 AM
#3
Thread Starter
New Member
Re: copy a file without saving
wow.. that was easy.
Thanks for the help again
-
Apr 4th, 2006, 11:10 AM
#4
Re: [Resolved] copy a file without saving
NP, I started thinking of this in a complicated way and then it hit me so I know how you feel.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|