-
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) #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 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 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, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Google : Extended Repair Program for Pixel 7a
by
Alex5723
56 minutes ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
4 hours, 40 minutes ago -
Wait command?
by
CWBillow
1 hour, 21 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
7 hours, 34 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
14 hours, 10 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
23 hours, 4 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 day ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
18 hours, 57 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 13 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 14 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
9 hours, 17 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
5 hours, 57 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
2 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 5 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 5 hours ago -
Unable to eject external hard drives
by
Robertos42
16 hours, 1 minute ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
3 hours, 42 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
1 hour, 36 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 9 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 12 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 15 hours ago -
Upgrade Sequence
by
doneager
3 days, 9 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 7 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 12 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 14 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 13 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 6 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 23 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
9 hours, 23 minutes 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.