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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mmandk9

    Error handling issue

    Golom, Thank you for your quick reply. There is not an "On Error GoTo 0" in the Combine procedure but you did point me in the right direction. In the Combine error handler, when writing to the log it was writing: Error.Number & ": " & Error.Description It should be: Err.Number & ": " &...
  2. mmandk9

    Error handling issue

    I have done some searching on the Internet and on this forum to see if I could find the answer to this without much luck. I may not be using the correct verbiage, so if this is answered already I apologize in advance - would you please direct me to the answer in that case. Using Access 2003, I...
  3. mmandk9

    Excel Macro for deleting empty cells

    Charlie, I have a piece of code where I filter and delete based on a number of criteria. Here are the relevant lines: w.Columns.AutoFilter Field:=2, Criteria1:=vntWebIDFltrs(i) w.Rows("2:" & Selection.End(xlDown).Row).Delete shift:=xlUp where w is dimmed as a worksheet and...
  4. mmandk9

    Assigning the Procedure ID in a VBA Collection Class

    Paul, From a VB ref: Step 1: write the NewEnum function procedure (as Nikki has shown in her code - it must have the square brackets and leading underscore as shown) Step 2: With the insertion point in the Function NewEnum statement, open the Procedure Attributes dialog box from the Tools...
  5. mmandk9

    Java Reflection In VBA? Iterate through a class' members?

    tcl, It almost sounds to me like what you want to do is load up a Dictionary object with a number of key/item pairs and then reference each value by it's name...? It's the VB version of the associative array: you give the name (key), you get back the value. Just a suggestion. Good luck. MM
  6. mmandk9

    Java Reflection In VBA? Iterate through a class' members?

    tcl, I am not an expert in this area, but I cannot quite tell if you are trying to iterate through the private data members of a user-defined class or through a collection. If you are trying to generate a list of all the values of the user-defined class, I am not aware of any command/function...
  7. mmandk9

    Closing an Access object that was started in Excel???

    Apollo6, You may already be doing this, but are using the 'quit' method? for example: obj_Access.Application.Quit ' or sometimes just obj_Access.Quit set obj_Access = Nothing It seems to work (xl97). HTH MM
  8. mmandk9

    Outlook Rules don't clear envelope icon

    Gilliam1, If you don't want it all, you can always use the 'permanently delete it' option. thats what I do... MM MM
  9. mmandk9

    How can your force a field with mostly numeric data to import as text

    SBendBuckeye, I had a similar issue in Access97. However, my issue was getting information from text files (.csv to be exact). In the transfertext method you can indicate a Specification Name - basically a set of rules on how to import the data. This way, I was able to indicate that certain...
  10. mmandk9

    Adding records with macro in Excel

    frosty, Is there any reason you can't just add the formatting to the spreadsheet when you create it? That way you don't have to go back and add it 5 rows at a time. I would simply record a new macro and add the formatting - the system will give you all the parameters. To adapt it, simply...
  11. mmandk9

    Excel macro text import file selection

    Ennes, Use the 'InputBox' function. The help pages can guide you through how to implement in your macro... MM
  12. mmandk9

    Quey Access within Excel

    pkmoore, Not sure this will help, but this is how I would approach it. Using Access' DoCmd.TransferSpreadsheet command, import your whole list into a temp table in Access. Then run the SQL/query for the whole table at once. You should then be able to export all the query results (again using...
  13. mmandk9

    How do you interpret a String Value as a Variable Name

    I had a few extra minutes and did a little more digging... First, you need to make sure you have added the 'Microsoft Scripting Runtime' library. You can do this through your References under "Tools". Once this is done, I was able to run this snippet of code successfully: Sub...
  14. mmandk9

    How do you interpret a String Value as a Variable Name

    MrMeReturns, It sounds like what you want is an associative array (what Perl users call a hash). What this does is sets up an array where the subscripts are strings instead of numbers. According to the help pages in excel97 VBA, this is available as a 'Dictionary Object.' I have never used...
  15. mmandk9

    Search for a value and copy to different sheet

    robcarr, I got the same results with the above code (I added the end if statement). I did switch the line in the if statement from: Worksheets("Daily Data").Cells(Match.Row, 2) _ = Worksheets("sheet1").Cells(i, 15) to: Worksheets("sheet1").Cells(i, 15) _...
  16. mmandk9

    Search for a value and copy to different sheet

    Rob, Assuming the above is the code you are using, what results are you getting when you execute? MM

Part and Inventory Search

Back
Top