Instead of looping through character by character you could define a VBA function as follows:
Public Function HasLowerCase(strTest As String) As String
If (0 = InStr(1, strTest, UCase(strTest), vbBinaryCompare)) Then
HasLowerCase = "Y"
Else
HasLowerCase = "N"
End If...
It might be worth looking at temporary work tables. I will use pseudocode rather than pure SQL to illustrate the idea.
INSERT INTO TEMP1 (fields F1,F2) FROM TEST unique combinations where K is 1 or 2
INSERT INTO TEMP2 (fields F1, F2, F3) FROM TEST, TEMP1 unique combinations for F1, F2, and the...
I have some VBA that reformats a workbook of data downloaded from another system. There is only formatted data - no formulae.
For two of my users the code was running very slowly - typically the task was taking a minute per sheet where I expected under 5 seconds per sheet. All users have...
In Excel go to a code window (Alt F11) and select the Object browser.
Change the library dropdown to Excel and in the lower window click on application. To the right you will see Run. Right click on Run and select Help.
This is a long shot. If there were control characters (like line feeds) in the backend data then just possibly MSQuery and Excel might see them differently.
Seems unlikely but in the absence of other ideas ...
This can easily be achieved by writing a simple VBA user defined function. For example, thisworkbook.CustomDocumentProperties("owner") would return the owner custom property.
If you need help on VBA repost in VBA Visual Basic for Applications (Microsoft).
Why not use an Excel Style - say called InputData - that has protection turned off and has shading turned on. Just format the data entry cells with that style.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.