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 bkrike 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: *

  • Users: phudgens
  • Content: Threads
  • Order by date
  1. phudgens

    Reading PDF files via Excel 2007 VBA

    I know this is likely a stupid question, but does anyone know of a way (3rd party software?) to read a PDF file on the fly via an Excel 2007 VBA program? I realize this will likely require conversion to some other file type. Thanks, Paul Hudgens Denver
  2. phudgens

    Defining ranges in Excel 2007 VBA

    I am using the following code to define a range in Excel 2007 VBA: With ThisWorkbook.Worksheets(MainWks) Set List = .Range("F3", .Range("F5000").End(xlUp)) End With This works fine if there are any non-empty cells in the range from F3 to F5000. If there isn't, List will become the first...
  3. phudgens

    Select order in Excel 2007 VBA Listbox

    Does anyone know of a way to determine the order in which items in a Listbox were selected by the user?
  4. phudgens

    Determining selection order from a Listbox in Excel 2007 VBA

    Does anyone know of a way to determine the order in which a user selects items in a Listbox in Excel 2007 VBA? I know how to determine which items have been selected, but I'm not sure how to determine the order in which they were selected. Does it require a multi-column Listbox? THanks, Paul...
  5. phudgens

    Writing to UNICODE text files from Excel VBA

    I'm writing data to text files from within Excel 2007 VBA that sometimes includes special characters. In the resulting file, which is being saved as a txt file, the special characters are being converted to ASCII characters. I have to go in and manually change the characters back and save the...
  6. phudgens

    Checking for open file before copying files in Excel VBA 2007

    I have tried both the FileCopy and fc.CopyFile methods to copy files between folders using Excel VBA 2007, both work great - unless the file being copied is already open. I can't find code that allows me to check if a file is open before trying to copy it. Does anyone know of any such code...
  7. phudgens

    Problem in recursive file find in Excel 2007 VBA

    I'm using the following code as part of a recursive subroutine to find files in all subfolders of a user specified intital folder. Set f = fs.GetFolder(FolderSpec) Set fc = f.SubFolders For Each F1 In fc 'ChkFldr = FolderSpec & "\" & F1.Name 'For i = 1 To...
  8. phudgens

    Using GetSaveAsFileName in Excel 2007 VBA

    I am using the GetSaveAsFileName method in Excel 2007 VBA to allow the user to navigate to and specify a folder & file that will be used later in the program for output of text data. Following is my code: With Application FileName = .GetSaveAsFilename(Filter, FilterIndex, Title)...
  9. phudgens

    User specified output txt file in Access 2007 VBA

    Access 2007 VBA does not recognize the GetSaveAsFileName method that Excel VBA does. Nor am I able to find a way that Access VBA allows a user to browse for and select an existing file, or specifiy an entirely new file, to be used for outputting text data. As far as I can tell, the FilePicker...
  10. phudgens

    Using a string to reference a field in a recordset definition in VBA

    I'm using the following VBA code in Access 2007 to reference a user selected field. The field that the user selects is placed in the string variable: ThisField. Both the field and it's associated table have been determined to exist. I get the error message: "Item not found in the collection."...
  11. phudgens

    Assign macro (module) to button in MS Access

    In MS Excel 2007 I can place a button on a worksheet and then assign a macro or module to that button. I'd like to do the same thing in MS Access 2007, placing a button either in the main window area or on the toolbar, but I'm not seeing a way to do that. Can anyone provide some insight...
  12. phudgens

    Moving folders and contents in Excel 2007 VBA

    I'm quessing that there is no simple way in Excel 2007 VBA to move a folder and all it's contents (including all potential files and sub-folders) to a new location as a folder under an existing, user-defined folder. I found the writeup on Tek Tips about the MoveFolder function, but that assumes...
  13. phudgens

    Using Excel 2007 VBA in OpenOffice

    I've done some investigation of running VBA in OpenOffice and can't get a feel of where things stand. Does anyone know if OpenOffice Excel can currently run VBA programs created on a PC? Thanks for any help, Paul Hudgens Denver
  14. phudgens

    Use Excel 2007 VBA to access Oracle DB

    I'm hoping to find a way to access an Oracle database on a UNIX machine via VBA. Does anyone know if it's possible? I see that there are conversion tools for converting VBA to Python and have heard that Python can access Oracle. Does anyone have any experience along those lines? Thanks for...
  15. phudgens

    Sorting a multi-dimensional array in Excel VBA 2007

    I'm using the VBA Sort routines to do 3-level sorts of 2-dimensional worksheet tables of data in Excel 2007. This works well, and requires a minimum of code. I'm wondering if there are similar VBA routines to sort multi-dimensional arrays of data, ie data that has not been written out to a...
  16. phudgens

    User modifiable input area in Excel 2007 VBA User Forms

    I'm wondering if there is a way to create an input area on User Forms in Excel 2007 VBA that would be sized and populated depending on user input in other areas on the form. It would be like a mini spreadsheet with 1 or more lines, scroll bars if needed, in which the user could arrow up and...
  17. phudgens

    Sorting worksheet values in Excel 2007 VBA

    I have a vague recollection that Excel VBA does not do sorting. Is that why when I run the following code: For i = 0 To iTotalZones iOffset = i * 3 With Workbooks(ThisWkBk).Worksheets("Operators") Set SortRange = .Range(.[A2].Offset(0, iOffset + 1), .[A2].Offset(0...
  18. phudgens

    Syntax problem in Excel VBA 2007 range command

    I'm using the following code to try and define an offset range of cells, but VBA is not accepting the syntax. VBA accepts the WriteCell definition but not the Opers definition. I get a "Expected list separator or (" message at the . following "A2". Enclosing the "A2" and/or "A50000" in...
  19. phudgens

    User editable entries in a UserForm ComboBox in VBA

    I am filling a ComboBox on a user form based on entries made by the user in another page on the same user form. Once the combo box has been loaded, I would like the user to have the ability to edit those entries, line by line, if needed. I'm not finding a way to do that in a VBA combo box...
  20. phudgens

    Triggering events on textbox change

    The following code triggers upon any change in the textbox "MinusICells", including deleting the existing value. I'm trying to get the code to trigger only when the value is actually changed/updated. Private Sub MinusICells_Change() Dim ic As Integer, iCount As Integer, jCount As...

Part and Inventory Search

Back
Top