|
-
Apr 10th, 2006, 10:52 AM
#1
Thread Starter
Member
Export Form to Excel and Auto-Name
I've searched the threads for a couple of days, and while I found some that came close to answering my question I thought I'd finally just post it and either get some responses or links to what you think are relevant responses.
I have a form in Access that once complete I want the user to hit a button and it saves that form's data in Excel and automatically re-names the new Excel file based on a combination of fields in the form (ie. date, cust_nbr, etc). Then I want to email that form (excel file?) to several people. Then I'd like a message box in access to say something like "Form Successfully saved at (folder/file location) and emails sent to person1 & person 2".
I know that's a lot of different stuff going on there, so perhaps we just start with the first one - code to save as excel and auto-name the form (also once this works I want the form to be blanked-out and ready for a new entry).
I'm pretty new to VB so any help or at least direction would be appreciated. Thanks!
-
Apr 10th, 2006, 11:09 AM
#2
Re: Export Form to Excel and Auto-Name
Are you doing this all in Access or in VB6? What version of Access and Excel?
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 10th, 2006, 11:11 AM
#3
Thread Starter
Member
Re: Export Form to Excel and Auto-Name
Whoops. Sorry about that. Both are MS Office 2003, SP1. I think I'd like to do this in VB6, though honestly I'm not sure which is the best way to proceed, as I'm new to both of them.
-
Apr 10th, 2006, 11:17 AM
#4
Re: Export Form to Excel and Auto-Name
But your form in in Access correct? If it is then we can do it in Access' VBA IDE.
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 10th, 2006, 11:21 AM
#5
Thread Starter
Member
Re: Export Form to Excel and Auto-Name
Yes, my form is in Access.
-
Apr 10th, 2006, 11:24 AM
#6
Re: Export Form to Excel and Auto-Name
Then we will write the code for this behind the form in its class file as long as this is going to be just for this one form. If you want to use something like this on other forms then we can place it in a module.
Moved.
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
|