-
WSrory
AskWoody LoungerOctober 7, 2016 at 5:34 am in reply to: Use of Wildcard in File Name with Workbooks.Open in VBA Excel 2013 #1580587Wouldn’t Dir be simpler as it accepts wildcards already (unless you’re on a Mac)?
-
WSrory
AskWoody LoungerYou didn’t mention you were using code to save the text file for some reason. For that you need to use the cell’s Text property rather than Value.
-
WSrory
AskWoody LoungerYou cannot customise the built-in form in any way, I’m afraid.
-
WSrory
AskWoody LoungerSeptember 8, 2016 at 7:12 am in reply to: Compare 2 values and return back the exchange rate based on the closest date #1577006In that case, sorting the table on currency and then date in ascending order, the formula is:
=IF(A2=”GBP”,1,LOOKUP(1,1/(RATE_CURR=A2)/(EXC_DATE<=B2),EXCHANGE_RATES))
Note that you don't have any 1/1/2016 data which is why you will get errors for any non-GBP currency for the first few rows.
-
WSrory
AskWoody LoungerSeptember 8, 2016 at 5:32 am in reply to: Compare 2 values and return back the exchange rate based on the closest date #1576991Is it OK to sort the exchange rate table by currency code and date? If so, the formula is pretty simple.
-
WSrory
AskWoody LoungerSeptember 8, 2016 at 3:41 am in reply to: Find Specific Text in Cell and Return a Specific Value #1576988As far as I can see, the logic boils down to:
If there’s 100, return 100; if there’s 120, return 120; otherwise return 85. In which case, E2 could contain:
=IF(ISNUMBER(FIND(100,D3)),100,IF(ISNUMBER(FIND(120,D3)),120,85))
and copy down.
Or in E2:
=IFERROR(LOOKUP(1E+100,FIND({100,120},D2),{100,120}),85) -
WSrory
AskWoody LoungerRight-click the file, choose properties, then you should see an unblock option if the file has been blocked by the security update.
-
WSrory
AskWoody LoungerThere is a recent security update to Office that can cause this. You need to locate the add-in file in explorer, right-click it and then unblock it.
-
WSrory
AskWoody LoungerIt’s always worth looking in the Language spec document. It takes a little while to get used to some of its syntax, but it’s a mine of useful information!
-
WSrory
AskWoody LoungerPer the VBA Language specification for Array Dimension and Bounds (sect 5.2.3.1.3):
array-dim = โ(โ [bounds-list] โ)โ
bounds-list = dim-spec *(โ,โ dim-spec)
dim-spec = [lower-bound] upper-bound
lower-bound = constant-expression โtoโ
upper-bound = constant-expressionStatic Semantics
-
[*]An <array-dim that does not have a <bounds-list designates a resizable array.
[*]A may contain at most 60 elements.
[*]An with a designates a fixed-size array with a number of dimensions equal to the number of elements in the .
[*]The in an or must evaluate to a data value that is let-coercible to the declared type Long.
[*]The upper bound of a dimension is specified by the Long data value of the of the that corresponds to the dimension.
[*]If the is present, its provides the lower bound Long data value for the corresponding dimension.
[*]If the is not present the lower bound for the corresponding dimension is the default lower bound for the containing module as specified in Section 5.2.1.2.For each dimension, the lower bound value must be less than or equal to the upper bound value.
Note that the lower bound is optional, the upper is not.
Hence, any array declaration that only provides one number for a dimension, is providing the upper boundary, as Maud said, not the number of elements, which will be dependent on the Option Base.
-
WSrory
AskWoody LoungerThank you. ๐
-
WSrory
AskWoody LoungerJuly 18, 2016 at 2:39 am in reply to: Unexpected new behaviour; XL 2016 opening files via VBA #1570646It would help if you posted your code. There is no Excel setting for ‘create workbooks if they don’t exist’ and Workbooks.Open has always failed if you pass a non-existent file path, so I suspect your issue is with an Access command like DoCmd.Transferspreadsheet.
-
WSrory
AskWoody LoungerAs for your question, it should count 1 in B and 0 in C.
In that case I think you need:
Code:=SUMPRODUCT((C3:C7"")*(SUBTOTAL(3,OFFSET($B$3,ROW($B$3:$B$7)-MIN(ROW($B$3:$B$7)),0,1,COLUMNS($B2:C2)))=1))
I don’t think any of the prior formulas will calculate like that.
-
WSrory
AskWoody LoungerTo do it without a helper column:
=SUMPRODUCT((C3:C7″”)*(SUBTOTAL(3,OFFSET($B$3:$F$3,ROW($B$3:$B$7)-MIN(ROW($B$3:$B$7)),0))=1))
One question though: if there is no value in col A, but a value in col B and col D, should it count as 1 in col B and 0 in col D, or 0 in both?
-
WSrory
AskWoody LoungerYou don’t need any. Simply adding the command bar controls should make the addins tab visible.
![]() |
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
-
Installer program can’t read my registry
by
Peobody
7 hours, 33 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
9 hours, 43 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
7 hours, 26 minutes ago -
False error message from eMClient
by
WSSebastian42
7 hours, 21 minutes ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
16 hours, 25 minutes ago -
Office 2021 Perpetual for Mac
by
rebop2020
17 hours, 38 minutes ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
1 hour, 51 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
21 hours, 9 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
7 hours, 11 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 2 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
1 day, 8 hours ago -
Another big Microsoft layoff
by
Charlie
1 day, 7 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
11 hours, 6 minutes ago -
May 2025 updates are out
by
Susan Bradley
43 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
1 day, 13 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
1 day, 13 hours ago -
Drivers suggested via Windows Update
by
Tex265
1 day, 13 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 day, 11 hours ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
Apple releases 18.5
by
Susan Bradley
1 day, 15 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 22 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 22 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
7 hours, 3 minutes ago -
No HP software folders
by
fpefpe
2 days, 6 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 day, 3 hours ago -
Stay connected anywhere
by
Peter Deegan
2 days, 11 hours ago -
Copilot, under the table
by
Will Fastie
14 hours, 9 minutes ago -
The Windows experience
by
Will Fastie
2 days, 17 hours ago -
A tale of two operating systems
by
Susan Bradley
22 hours, 11 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 23 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.