Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cheerio

  1. cheerio

    Identifying lowercase characters in a field

    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...
  2. cheerio

    Help making SQL run more efficiently

    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...
  3. cheerio

    Where and statement

    why is the third field prefixed with tbl which is not a table name or alias?
  4. cheerio

    VBA code running on it's own

    is not true. The code can become corrupted - see http://www.appspro.com/Utilities/CodeCleaner.htm
  5. cheerio

    Use VBA to open word or excel, but disable their features

    Does the user actually need to see the file? Otherwise you can stop the user from doing things by making the application invisible.
  6. cheerio

    Excel 2007 issue with hidden objects

    does this help: http://blogs.msdn.com/excel/archive/2009/01/30/hidden-and-invisible-objects.aspx
  7. cheerio

    Slow running Excel 2003 VBA

    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...
  8. cheerio

    Excel Q

    Consider storing the workbook as a template?
  9. cheerio

    Call/execute an Excel macro from Access retrieve result back to Access

    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.
  10. cheerio

    Programmatically Installing and Referencing Solver.xla

    What value does the machine have for application.LibraryPath This defines where Excel will look for addins.
  11. cheerio

    MSQuery only returning partial fields

    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 ...
  12. cheerio

    Displaying the Custom Tab in File Properties in Excel

    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).
  13. cheerio

    Conditional format based on Cell contents

    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.
  14. cheerio

    Lookup or equivalent based on 2 criteria

    A good explanation of use of SUMPRODUCT in this way can be found at http://www.xldynamic.com/source/xld.SUMPRODUCT.html
  15. cheerio

    Excel 2003 A comment that's not really a comment

    Data Validation - first tab Allow Any value - Second tab is where you put your message

Part and Inventory Search

Back
Top