object variable not set

  1. K

    VBA Excel, Error code 91

    Hello, I was using this macro for a form and one day, it stopped to work and I got the error 91 The thing I don't understand, i have this error only for lines in bold and red. Does someone have a solution for this please ? Thank you ! Sub Save_SharePoint_A_Initiation() Dim Leader As...
  2. Y

    Object Variable or With Block Variable not set

    Hi all, I'm having problems with a simple piece of code which suddenly stopped working, and I don't recall changing anything which has caused this to break. The code says 'object variable or with block variable not set', but I have set the dim above. Here is my code: Dim ThisWorkBook As...
  3. A

    msoFileDialogFilePicker Throws Error: object variable with block variable not set

    Hi: I'm trying to use this standard bit of code: Dim fd As Office.FileDialog Dim strFile As String Set fd = Application.FileDialog(msoFileDialogFilePicker) With fd .AllowMultiSelect = False If .Show = -1 Then strFile = .SelectedItems(1) End If End With But I'm getting...
  4. G

    Object variable won't assign/set

    I've cut down the code to show the specific line I'm having an issue with. Can someone help me understand why this variable won't set? Other variables (not shown in this snip) with slightly diffferent order in the Cells syntax get their values just fine. For example, when I use the vLocCell...
  5. A

    Object variable or With block variable not set-MAC issue

    I get the following error "Object variable or With block variable not set" when I run the below code on a MAC however on a windows PC it works fine Option Explicit Sub create_and_email_pdf() Dim EmailSubject As String, EmailSignature As String Dim CurrentMonth As String, DestFolder As...
  6. D

    Object variable or With block variable not set error???

    Good day all, I have reached the end of my own limited knowledge and ask if anyone here could help me? I have a simple spreadsheet, column(5) "E", has a pulldown with values P1 thru P4. The following code simply places an 'X' in column "A" when P1 is selected, and removes the 'X' when any...
  7. S

    Object Variable Not Set - Class Module inside Class Module

    I'm trying to assign a Class Module known as Port to part of another Class Module , here's the code so far: The port class module is as follows Private pName As String ' Properties Public Property Let Name(Value As String) pName = Value End Property Public Property Get Name() As String...
  8. T

    Runtime Error '91' Object variable or With block variable not set

    Can someone help me fix my code. I am trying to loop through a column that has numbers beside each of the new files. For each i it should set the range as an offset 2 columns over and pull that file name, but when it loops through I get a runtime error '91' Then at the bottom I am trying to...

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