|
-
Oct 2nd, 2005, 05:14 PM
#1
Thread Starter
New Member
I Need Help Please
I am using MS Excel and i am trying to make a button where i can click to run the 'solver' function thats is built in ino the program but I am not very good with VB so i dont know how to code the button. BTW, the solver function is an add-on for excel which is located under the tools tab. please help me. thanks.
-
Oct 2nd, 2005, 06:19 PM
#2
Re: I Need Help Please
Welcome to VB Forums!
I moved your thread to here since it looks like you are working with VBA rather than VB. I'm sure someone will help you.
-
Oct 2nd, 2005, 07:10 PM
#3
Re: I Need Help Please
This button you want, is it a button on the actual sheet or a toolbar button?
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 
-
Oct 2nd, 2005, 07:26 PM
#4
Re: I Need Help Please
I've added the Solver add-in and it appears under the Tools menu but I don't think (well I couldn't find) a toolbar button for it.
Another option is to run a macro of a problem you want to solve and then look at the saved macro to see how it is done with code.
HTH
-
Oct 2nd, 2005, 07:30 PM
#5
Re: I Need Help Please
Oh, that solver addin. The one that comes with Excel. Isnt it invoked from code only?
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 
-
Oct 2nd, 2005, 08:31 PM
#6
Re: I Need Help Please
Ok, here one way to invoke the Solver addin.
VB Code:
Dim oCBmnuTools As Office.CommandBarPopup
Dim oCBmnuSolver As Office.CommandBarButton
Set oCBmnuTools = Application.CommandBars("Worksheet Menu Bar").Controls("&Tools")
Set oCBmnuSolver = oCBmnuTools.Controls("Sol&ver...")
oCBmnuSolver.Execute
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
|