accessing hyperion addin
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » Accessing Hyperion add-in

Accessing Hyperion add-in

resolvedResolved · Urgent Priority · Version 2003

replyReplyThu 2 Jul 2009, 15:00Delegate Trevor said...

Accessing Hyperion add-in

Hi

I am using a Hyperion add in within excel that has an extra item within the command bar called RHXL. Having hit RHXL one of the options is Refresh. I simply want to write a bit of code to Refresh. I have been given the code below which apparantly worked in a earlier life

Application.CommandBars("Worksheet Menu Bar").Controls(" RHXL").Controls(" Refresh").Execute


The sub routine is falling over saying it is an invalid procedure or agument


Please could you tell me what I am doing wrong - as cannot see Worksheet menu Bar anywhere in help

Thanks

For upcoming training course dates see: Pricing & availability

replyReplyFri 3 Jul 2009, 09:43Trainer Stephen said...

RE: Accessing Hyperion add-in

Hi Trevor

Thanks for your question

This one is hard to fix without seeing your application with the add in. A few things to try however.

1. The first thing is that the code you posted appears to have a rogue blank space in controls(" RHXL), which would probably cause the thing to fall over.

2. The structure of the code seems odd in that I would have expected something like

Application.Commandbars("RHXL").Controls("Refresh").Excecute

This is because the RHXL toolbar is the command bar and the refresh button is the control you wish to use

If this doesn't work please get back to me and we can try something else

Regards

Stephen

replyReplyFri 3 Jul 2009, 13:26Delegate Trevor said...

RE: Accessing Hyperion add-in

Stephen

Your observation of the rogue spaces did the trick - thanks. The following code now works in one worksheet. However if I copy the code to another worksheet and run the code I get a 400 error message and it doesn't like it at all - any ideas ?

Sub refresh()


'this macro refreshes all worksheets

Dim WS As Worksheet

For Each WS In Worksheets

Application.CommandBars("Worksheet Menu Bar").Controls("RHXL").Controls("Refresh").Execute

Next WS

Sheets("master").Select

MsgBox ("All worksheets have been refreshed")

End Sub

replyReplyMon 20 Jul 2009, 09:34Trainer Stephen said...

RE: Accessing Hyperion add-in

Hi Trevor

Thanks for you follow up

I apologise for the delay in replying. I have been away from work for the last few weeks due to illness. I realise that you may have already solved the problem, if this is not the case could you please advise me so that I can giver it my urgent attention

Regards

Stephen

replyReplyMon 20 Jul 2009, 10:17Delegate Trevor said...

RE: Accessing Hyperion add-in

Solved - problem was in naming the macro 'refesh' a word reserved for Hyperion - thanks for your efforts anyway . Trevor

replyReplyMon 20 Jul 2009, 10:41Trainer Stephen said...

RE: Accessing Hyperion add-in

Thanks Trevor

Regards

Stephen

 

 

Please browse our web site to find out more about
class in access vba and other Microsoft training courses.

Vba tip:

Stop Display Alerts In Excel

When creating or deleting a Worksheet in Excel you don't want Excel to inform you "A file already exists....." Or "Do you want to save this file...".

To stop these alerts happening use the following line of code:

Application.DisplayAlerts = False

After the Create or Delete routine use:

Application.DisplayAlerts = True

View all VBA hints and tips

forum postWhen formatting text styles certain colours do not appear to work (i.e. aqua)? Is this a technical gliche?

» Forum post: Formatting


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training