-
WSBrooke
AskWoody LoungerArmando,
Take a look at the attached file. You will need to open it up and hit [ALT] +[F11] to view it in the IDE. There is some code in the ThisWorkbook and mod_menu modules but all the essbase code is contained within the module mod_essbase.
To use this on your workbook, you will need this file open, and then make your spreadsheet the active workbook. Then you can call the menu item that will refresh the retrieval zones in your workbook. However, you will need to make some changes first.
The changes you will need to make are to the connection line and the retrieval line in the macro “Refresh_Sheet”, and the Sheet Names in the macro “Refresh_Workbook”. From looking at the code you had in the file you sent me, I don’t think you will have a problem with this, although I was confused by your range: I’d check it shouldn’t be “A6:Q37” instead of “B6:Q37”.
FWIW, the approach you were taking was probably confusing you because I have been talking throughout this thread about using vba, whilst you have been trying to convert my advice into the old version 4 macro code. This still works if you know what you are doing but I don’t – I did inherit some essbase macro’s that used excel4 macro code, and may be able to work through what they do, but anything new I have written is in vba: I would strongly recommend that you adopt the same approach.
Also FWIW, I mentioned earlier that I was using essbase 5, and not 6 as you are. I have since upgraded to version 6 and I have tested the code in the attached file since.To answer two of your earlier questions,
a) the functions such as “EssVConnect” are not native to Excel, and so need to be declared to Excel by a call to the library that they are contained in, detailing the parameters that need to be passed. This is the declaration code at the top of the essbase module.
the code that contains the variables “intchkgood” etc in a previous post of mine is just a version of the code in the attached file, with error checking included. When you call one of the essbase functions, not only does it perform the requested action, but it also returns a value indicating whether the call was successful or not. This enables you to write code comparing the number of retrievals performed against the number of succesful retrievals. If these two do not match then you can generate some kind of error report that all is not well, allowing you to fix the problem before sending inaccurate data to your boss/colleagues.
If you have any more problems or questions, feel free to ask!
-
WSBrooke
AskWoody LoungerArmando,
Take a look at the attached file. You will need to open it up and hit [ALT] +[F11] to view it in the IDE. There is some code in the ThisWorkbook and mod_menu modules but all the essbase code is contained within the module mod_essbase.
To use this on your workbook, you will need this file open, and then make your spreadsheet the active workbook. Then you can call the menu item that will refresh the retrieval zones in your workbook. However, you will need to make some changes first.
The changes you will need to make are to the connection line and the retrieval line in the macro “Refresh_Sheet”, and the Sheet Names in the macro “Refresh_Workbook”. From looking at the code you had in the file you sent me, I don’t think you will have a problem with this, although I was confused by your range: I’d check it shouldn’t be “A6:Q37” instead of “B6:Q37”.
FWIW, the approach you were taking was probably confusing you because I have been talking throughout this thread about using vba, whilst you have been trying to convert my advice into the old version 4 macro code. This still works if you know what you are doing but I don’t – I did inherit some essbase macro’s that used excel4 macro code, and may be able to work through what they do, but anything new I have written is in vba: I would strongly recommend that you adopt the same approach.
Also FWIW, I mentioned earlier that I was using essbase 5, and not 6 as you are. I have since upgraded to version 6 and I have tested the code in the attached file since.To answer two of your earlier questions,
a) the functions such as “EssVConnect” are not native to Excel, and so need to be declared to Excel by a call to the library that they are contained in, detailing the parameters that need to be passed. This is the declaration code at the top of the essbase module.
the code that contains the variables “intchkgood” etc in a previous post of mine is just a version of the code in the attached file, with error checking included. When you call one of the essbase functions, not only does it perform the requested action, but it also returns a value indicating whether the call was successful or not. This enables you to write code comparing the number of retrievals performed against the number of succesful retrievals. If these two do not match then you can generate some kind of error report that all is not well, allowing you to fix the problem before sending inaccurate data to your boss/colleagues.
If you have any more problems or questions, feel free to ask!
-
WSBrooke
AskWoody Loungerpart of the answer may depend on precisely how your retrieval zones are set out on the individual worksheets. Is it possible to post an example? overwrite any sensitve data within the retrieval zone with nonsense values – what I’m really looking for is whether you’ve got formulae in amoungst the retrieval zones and their general layout.
-
WSBrooke
AskWoody Loungerpart of the answer may depend on precisely how your retrieval zones are set out on the individual worksheets. Is it possible to post an example? overwrite any sensitve data within the retrieval zone with nonsense values – what I’m really looking for is whether you’ve got formulae in amoungst the retrieval zones and their general layout.
-
WSBrooke
AskWoody LoungerApril 13, 2004 at 2:16 pm in reply to: Adding custom Header/Footer to Default Listbox (Excel 97) #814061My apologies Walter – looking at Steve’s response and the post He links to, I believe I may have misinterpreted your question
!
-
WSBrooke
AskWoody LoungerApril 13, 2004 at 2:16 pm in reply to: Adding custom Header/Footer to Default Listbox (Excel 97) #814062My apologies Walter – looking at Steve’s response and the post He links to, I believe I may have misinterpreted your question
!
-
WSBrooke
AskWoody LoungerApril 13, 2004 at 2:09 pm in reply to: Adding custom Header/Footer to Default Listbox (Excel 97) #814056in the page-setup dialog, where you see the list of default options, you should also see a “Custom” Button – click on this and you’ll be able to add your own – sample attached (from 2K but from memory it is the same)
-
WSBrooke
AskWoody LoungerApril 13, 2004 at 2:09 pm in reply to: Adding custom Header/Footer to Default Listbox (Excel 97) #814055in the page-setup dialog, where you see the list of default options, you should also see a “Custom” Button – click on this and you’ll be able to add your own – sample attached (from 2K but from memory it is the same)
-
WSBrooke
AskWoody LoungerOn the subject of modeless forms, try stephen bullen and look for the download modelessform.zip – but take note of the warning. I haven’t tried it so can’t offer any more help.
Brooke
Edited Mar 13th 2004 to update link
-
WSBrooke
AskWoody Lounger(Edited by HansV to update link to Excel MVP site)
Just wondering how you were getting on with this – I’ve only just started to play with it again myself. The link Sammy gives is good but you need to go in one link further to the http://www.cpearson.com/excel/vbemenus.htm%5B/url%5D page. I know this is all in excel but hey, it should work for you. An additional link on this subject is http://www.bmsltd.ie/O2000/Default.htm%5B/url%5D again in excel, you’re looking for the VBEtools2000 download – it should be translatable to word. Neither of these is actually what I vaguely remembered seeing before – I still haven’t rediscovered that – but they are both using the same method of class modules. The second link gives an alternative method of closing all the code panes different to the one I supplied as well as a few other interesting things
-
WSBrooke
AskWoody Lounger(Edited by HansV to update link to Excel MVP site)
I believe the only way to do this is programattically and to use a class module to trap the click events of the custom buttons. I just use Stephen Bullens VBEtools2000 as is, which is available from http://www.BMSLtd.ie[/url%5D. This is not locked so you can use it as a tuition for how to roll your own.
-
WSBrooke
AskWoody LoungerI think that what you need to do is double click on the row field that you want to sort by – probably the left-most one (in my example it is the first visible column, row 15, “sales region”), which will give you the PivotTable Field Dialog – click on the advanced button and you’ll get the PivotTable Field Advanced Options Dialog. Under AutoSort options, change it from “manual” to either descending or ascending and then select the datafield you want to sort by.
-
WSBrooke
AskWoody LoungerI think that what you need to do is double click on the row field that you want to sort by – probably the left-most one (in my example it is the first visible column, row 15, “sales region”), which will give you the PivotTable Field Dialog – click on the advanced button and you’ll get the PivotTable Field Advanced Options Dialog. Under AutoSort options, change it from “manual” to either descending or ascending and then select the datafield you want to sort by.
-
WSBrooke
AskWoody LoungerDoes INT(ROW()/2) do what you want?
-
WSBrooke
AskWoody LoungerDoes INT(ROW()/2) do what you want?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Where’s the cache today?
by
Up2you2
7 hours, 45 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
30 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
2 hours, 16 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
8 hours, 26 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 1 hour ago -
regarding april update and may update
by
heybengbeng
1 day, 2 hours ago -
MS Passkey
by
pmruzicka
4 hours, 31 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 10 hours ago -
*Some settings are managed by your organization
by
rlowe44
20 hours, 58 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 9 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 4 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
AI slop
by
Susan Bradley
7 hours, 46 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 15 hours ago -
Two blank icons
by
CR2
1 day, 2 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 hour, 17 minutes ago -
End of 10
by
Alex5723
3 days, 2 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days ago -
test post
by
gtd12345
3 days, 8 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 22 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 1 hour ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 13 hours ago -
Upgrading from Win 10
by
WSjcgc50
2 days ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
2 days, 4 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
4 days, 4 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 16 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
4 days, 6 hours ago -
Are manuals extinct?
by
Susan Bradley
1 day, 7 hours ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
4 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.