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. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    The workbook opens but nothing happens. I look back at my Access code and I see the error "Method 'Open' of object 'Workbooks' failed", run-time error -2147417851. Thanks for your help.
  2. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    Okay, here's all the code. The Sub cmdFormatRpts_click procedure calls the fixXLS function to format the spreadsheet and walks through the records table that has the attachment names. Option Compare Database Private Sub cmdFormatRpts_Click() Dim intRecordCount As Integer Dim SQL As String...
  3. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    Not sure what else you need from me. I guess I'll purchase a book. Just can't understand why it works under AccessXP and not 2007 unless it's something with Excel 2007.
  4. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    My bad!!! On closer review and stepping through the code, it opens the file but still hangs on the "Method 'Open' of object 'Workbooks' failed", run-time error -2147417851.
  5. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    Okay, looks like we are almost there. I can see the file opens and the formatting takes place but the file does not close so it can go to the next spreadsheet to format.
  6. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    Here it is. It's bombing on the 'GetObject(mySheetPath) Function fixXLS(mySheetPath) Dim xl As Excel.Application Dim XlBooks As Excel.Workbook Dim XlSheets As Excel.Worksheet Set xl = CreateObject("Excel.application") Set XlBooks = GetObject(mySheetPath) Set XlSheets...
  7. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    \\ga-13025-fs\reports\attached names.xls" I've tried it with the new Excel format also using .xlsx extension. I have about 40 different spreadsheets in that location and my code walks through an Access table and formats each of the spreadsheets. I would hate to have to do this manually.
  8. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    Now I get Method 'Open' of object 'Workbooks' failed
  9. commandchief

    Formatting Excel 2007 worksheets within Acess using VBA

    I had the function below working in AccessXP but it no longer works in Access 2007. I get an error that says it can't create object. Any suggestions?? Function fixXLS(mySheetPath) Set Xl = CreateObject("Excel.application") Set Xlbook = GetObject(mySheetPath) Xl.Visible =...
  10. commandchief

    Send Object in Access

    I don't know any other way to explain it because I don't know why it's happening. I have a database that emails a series of spreadsheets. Some of those spreadsheets have the data in reverse video and some don't. It's not happening now with the new queries I create for the sendobject but...
  11. commandchief

    Send Object in Access

    When I am sending a query object in an e-mail in Excel format, the data resulting Excel file appears to be in reverse video. I have to open each file and change the font color so it's readable. I'm not sure when this happened but it only affected the queries I created during a certain time...

Part and Inventory Search

Back
Top