xlapp

  1. gheyman

    Access VBA Code Compile error

    I am getting a Compile Error: User-defined type not define. I had a freelancer develop this code for me (I am not smart enough to write this). Private Sub Command101_Click() Dim fd As FileDialog Dim ExcelRunning As Boolean Dim xlApp As Excel.Application Dim mywb As...
  2. E

    copypaste from workbook to another

    Hi guys, i am a newbie to vba and i am trying to copy several worksheets from a closed file into my current open one. the code is the following Sub Import() 'copy data from closed workbook to active workbook Dim xlApp As Application Dim xlBook As Workbook Dim wb1 As Workbook Dim Sh As...
  3. A

    Run-Time Error in Call to Macro from Form

    Hello all, I updated a macro that had been created by a previous resource, and now when I call the macro in my Access DB I am receiving a "Run-time error '438': Object doesn't support this property or method'. I'm confused because I use the same late-binding references in all my forms. Also...
  4. G

    Open and hide shared excel file with vba code

    With this code : Sub TEST() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Set xlApp = New Excel.Application xlApp.Visible = False Set xlBook = xlApp.Workbooks.Open( "C:\temp\pippo.xls" ) Stop xlBook.Close SAVECHANGES:=False Set xlSheet =...
  5. L

    GetObject from a web file

    Hello, I have a Macro launched automatically every x minutes that refreshes a couple workbooks stored on a SharePoint site. It opens every workbook in a new Excel Instance (not simultaneously) via the Shell function, so that if one instancefails (for example an error message popping), the other...
  6. C

    Access VBA - Picking up a predefined file

    Hi, Having issues writing the below and getting it to work. I want it to be able to use a cell in an excel document to determine which file needs to be picked up, it's currently opening the dialog box where I'd usually select the folder, but not selecting the relevant file automatically. The...
  7. keldsor

    Sometimes Run time error 1004 - only sometimes ???

    I use this code in Access to draw a timeline and freeze panes in Excel - so the commands are for the Excel enviroment - that's why I'm asking here. Sometimes it runs into error 1004 in the marked line: Private Sub bygTidslinien(st As Integer, d As Boolean) Dim xlApp As Object Dim wb As...
  8. keldsor

    Why "Invalid procedure call or argument (Error 5)" ??

    I execute this code (only part given here !): Dim FSted As String, FDato As String, DSted As String, DDato As String Dim xlApp As Excel.Application Set xlApp = GetObject(, "Excel.Application") AppActivate xlApp...
  9. O

    Excel background process does not quit

    Would someone please explain why the Excel process continues to run even after Closing and Quitting. From my limited understanding I thought sourceWB.Close & xlApp.Application.Quit would do the trick. What Am I missing? Private Sub UserForm_Initialize()If TimeCard.tbEmployeeID.Value = "" Then...
  10. B

    Using wildcards for fso.getextensionname comparison

    Hi, I have a function that opens files and does not have much problem except it cannot seem to open excel files while my modeless userform is open. If my userform is not open then for some reason it works. So to get around this I want to use wildcards to catch any type of excel file extension...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top