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 John Tel 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: belstoy
  • Content: Threads
  • Order by date
  1. belstoy

    How to open the most currently dated file within a folder

    I am creating a job to open the most recently dated file within a specific folder. The files have a naming convention of "filename.yyyymmdd.xls" Looking for code to aid me in doing this. Thanks, Belstoy
  2. belstoy

    How to close Excel through Access??

    Hello, I am attempting to close Excel through Access with an Auto_Exec Macro using the RunCode option. Initially the code in my module was as follows: Sub test() Dim y as Object Set y = GetObject(,"Excel.Application") y.DisplayAlerts = False y.Quit Set y = Nothing End Sub I could run...
  3. belstoy

    How to run code in a module from a macro command

    I am trying to run the following code via a macro command, but I am not having any luck. Which command should I be using? Runcode or something else? [Private Sub cmdExcel_Click() On Error GoTo Err_cmdExcel_Click Dim oApp As Object Set oApp = CreateObject("Excel.Application") oApp.Visible =...
  4. belstoy

    Opening and importing contents from several xls workbooks into one

    Hello, I need a code to open several xls workbooks and import the data from all those workbooks into one xls template (with a row between each set of data). File names are similiar, but could be a different number of files each run. See File names below: RPT_BRANCH_663 RPT_BRANCH_731...
  5. belstoy

    How to name a Sheet in an Excel Workbook?

    I am looking for a way to name a sheet in an Excel Workbook without having to identify the sheet as "Sheet 1" or "Sheet 2" etc... This job will be on a loop that is naming multiple sheets using values within cells. Is is possible to name a worksheet just by identifying it as...
  6. belstoy

    MoveFile and Rename Question

    I am attempting to move a file and rename it. The code I am currently trying to use is: [My.Computer.FileSystem.MoveFile("C:\My Documents\File2*.xls", "C:\My Documents\Sales\Processed2.xls")] I am getting a compile error. Any thoughts?, please advise. Belstoy
  7. belstoy

    Move File Method and Rename Question

    I am attempting to move a file and rename it. The code I am currently trying to use is: [My.Computer.FileSystem.MoveFile("C:\My Documents\File2*.xls", "C:\My Documents\Sales\Processed2.xls")] I am getting a compile error. Any thoughts?, please advise. Belstoy
  8. belstoy

    VB code to "open file" in Excel (Wildcard)

    I am currently trying to write code to open a file in excel that may or may not have a date stamp. Is there a wildcard I can use to open this file whether it is named "Status File" or "Status File 013107". I am currently using the following: [Workbooks.Open Filename:="C:\My Documents\Status...
  9. belstoy

    [b]Formatting a field from Date to Text using a query[/b]

    I am trying to take a date format and convert it into text using a query. I have an automated process which sends an excel file out when done. The date format in the excel file is appearing as "00-Jan-00". Any thoughts? Belstoy
  10. belstoy

    Creating a fixed Character length in a cell

    Hello, I am currently trying to create a cell with a 30 character max. I am then saving the spreadsheet to a text file. This field in the text file needs to be 30 characters long no matter if I type in 10 characters or 25. Thanks, Belstoy
  11. belstoy

    Removal of invisible Hexadecimal characters in an excel cell

    I received an external spreadsheet from a customer with a "First Name" and "Last Name" column. It appears at the end of each cell there are invisible Hexadecimal characters. How can I remove them? Belstoy
  12. belstoy

    Removing invisible Hexadecimal characters from the end of a cell

    Hello, I received an excel spreadsheet which contains First Name and Last Name columns. It appears at the end of every name there are invisible hexadecimal characters. How can I remove them, keeping in mind all Names are different lengths? Belstoy
  13. belstoy

    Auto Populate a Form?

    I apologize, this seems like it should be easy, but I'm new to this.... I have a form which folks are entering info to create a db. I have a combo box with "Company ID" for folks to choose the appropriate ID on the form. The "Company ID" combo box gets its data from a separate table; "Company...

Part and Inventory Search

Back
Top