?
Solved

Ms Acc2010 Toolbar

Posted on 2016-08-02
14
Medium Priority
?
98 Views
Last Modified: 2016-09-04
Hello All,

I want to hide the toolbar from the users using DoCmd.ShowToolbar "Ribbon", acToolbarNo
But I need the Button Export to Excel Spreadsheet option that the toolbar has.
is there a way to display the Export to Excel Spreadsheet Button without the toolbar.
Thanks
0
Comment
Question by:frimy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
  • +3
14 Comments
 
LVL 58
ID: 41739485
You'd have to create your own custom ribbon.

Lot's of good info on Gunter's site:

http://www.ribboncreator2016.de/en/

(look in the FAQ) along with the Ribbon Creator.

Jim.
0
 
LVL 58
ID: 41739493
<<Lot's of good info on Gunter's site:>>

 Actually, I have to take that back a bit.  Looks like he's removed most of the info he once had :(

Jim.
0
 
LVL 39

Expert Comment

by:PatHartman
ID: 41739497
Or, you could add your own button to do the export and not use the ribbon at all.  For most of my reports, I include an Excel export option.  So one option group includes Print, Preview, PDF, Excel.  The default is set to preview.  The user selects a report from the list and then presses the "Run" button.  The code looks at the option group to decide what to do.
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 48

Expert Comment

by:Dale Fye
ID: 41739572
Or you could create a right-click, shortcut menu.
0
 

Author Comment

by:frimy
ID: 41739607
Dale Fye,

It sounds good.
Can you give me some info how to do it?
Thanks
0
 
LVL 48

Expert Comment

by:Dale Fye
ID: 41739649
frimy,

I've written a number of articles here in EE about commandbars (shortcut menus).

Start out with:

Understanding and using Commandbars

Then move on to the other three articles in the series.
0
 
LVL 26

Expert Comment

by:Nick67
ID: 41739927
@Jim,
Most of the good stuff was here
http://www.accessribbon.de/en/
rather than on the product sites
0
 
LVL 58
ID: 41740419
@Nick,

 Ah, didn't realize he was running multiple sites now.  Thanks for posting that.   Would have been sad to loose all that good info.  This is exactly what I had in mind when I made the comment.

@frimy,

 This is the page you want if your going to do a custom ribbon:

http://www.accessribbon.de/en/?Access_-_Ribbons

 It has all the info you need.

Jim.
0
 
LVL 31

Expert Comment

by:Helen Feddema
ID: 41740773
You could put the Export to Excel button on a main menu such as the New Style Main Menu I developed:

http://www.helenfeddema.com/Files/accarch212.zip

Here is a screen shot:

New Style Main Menu
In this case, you could use one of the folder path selectors to select the path where the workbooks should be saved.
0
 

Author Comment

by:frimy
ID: 41741155
your suggestions sound very good. Thank you very much.

But i just need to be able to create a button on a form and to open the "Export - Excel Spreadsheet" dialog.

See below attached file.
Capture.PNG
0
 
LVL 31

Accepted Solution

by:
Helen Feddema earned 2000 total points
ID: 41746225
This command on a form button's Click event will open the dialogue:

   DoCmd.RunCommand acCmdExportExcel

However, it assumes that you want to export the form from which it is called, which may not be what you want.  Another approach is to put the Export to Excel Worksheet command on the Quick Access Toolbar, where you can call it to export the selected object.  To add this command to the QAT, click the little drop-down arrow to the right of the QAT, select More Commands, then select the All Commands category, select the Export to Excel Spreadsheet item and click the Add button:

Customize QAT
If you need more control that that (filtering data, for example), you may need to write some code to do the export.
0
 

Author Comment

by:frimy
ID: 41750909
Helen,

This is what I wanted,  DoCmd.RunCommand acCmdExportExcel
The other solution to put it on the QAT bar, has a problem because if I hide the Toolbar in code the system will also hide the QAT.
Do you have a solution?
It would be nice.
Thank you very much.
0
 
LVL 26

Expert Comment

by:Nick67
ID: 41776800
Hey @frimy!
Is this one complete?
Or do you need more help?
0
 
LVL 31

Expert Comment

by:Helen Feddema
ID: 41782160
You could run the command from a macro, and then the user could run the macro from the Nav Pane (unless it is hidden).
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question