|
-
Apr 27th, 2004, 01:39 AM
#1
Thread Starter
Fanatic Member
making a button invisible
is it possible to make a button in an excel spreadseet to become invisible from vb6 after calling out the excel template?
-
Apr 27th, 2004, 04:36 AM
#2
Frenzied Member
Try this. In my case it hides the Paste button.
VB Code:
MsgBox Application.CommandBars("Standard").Controls(10).Caption
Application.CommandBars("Standard").Controls(10).Visible = False
You would need to iterate through the controls until the Caption matched the one you were looking for
Then set it to false.
-
Apr 27th, 2004, 08:18 AM
#3
Hyperactive Member
Be carefull though, you'll need to set the button visibility back to true when exiting or it won't show up next time you open Excel. Unless that is your desired effect.
-
Apr 27th, 2004, 07:29 PM
#4
Thread Starter
Fanatic Member
sorrie...i make a wrong statement...
the button which i mention comes from the control toolboxin excel (commandbutton1 for eg)...tha t is paste on the sheet.....trying to make it invisible..
-
Apr 28th, 2004, 11:31 AM
#5
I posted the answer in your VBA Forum thread.
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
|