defined

  1. D

    Application defined or object defined error

    I try to run this code and all it says it application defined or object defined error and it highlights this row Workbooks(DocYearName).Worksheets(Combo).Range("A5").CurrentRegion.Select key1:=Range("A3"), order1:=xlAscending, header:=xlYes However, I don't think it is a problem with this line...
  2. Nelson78

    Run time error 1004 application defined or object

    Hello everybody. Something unexpleinable (I mean, for me) is happening: run time error 1004 application defined or object on the following line: For Each Cell In Sheets(2).Range(Cells(2, 3), Cells(403, 3)) Why?
  3. E

    hidden location for range properties?

    I have a program that ACW helped me with years ago(pretty sure it was Excel 2003 aka v11, currently on Office 365) that does a look up and converts name to its corresponding item code. This uses a range named "lurange". I am now running into an issue it appears that "lurange" is defined as lines...
  4. A

    VBA Script fails when triggered by Worksheet_Activate()

    Hi All, Quite embarrassed with this one but can't for the life of me fix it. I have a VBA script that works perfectly when triggered as a Macro, but fails when triggered by Worksheet_Activate. The line that fails is: dest.Range("A6:M1000").AutoFilter Field:=pn.Column, Criteria1:="" Where...
  5. JenniferMurphy

    Can I get a list of the defined keyboard shortcuts for a sheet?

    I want to assign a macro (Sub) to a keyboard shortcut. When I do this in Word, it tells me if the shortcut is already defined so I don't screw anything up. Excel does not appear to do this. Is there a way for me to find out what all of the extant shortcuts are in any sheet?
  6. J

    User Defined Type Not Defined

    New to Access programming. Just created a form and wired events to it but every time I bring the form up on either the control or an event like Form_Load, I get a "User Defined Type Not Defined" error. I wired the control events through the property sheet and used the Code Builder option. I'm...
  7. H

    vlookup vba

    Hi All, I'm trying to pass the value of lookCol in the lookup formula here but getting an object defined error here. Can someone please help me with this lastCol = Cells(1, Columns.Count).End(xlToLeft).Column lookCol=0-lastCol Cells(i, curCol).Value =...
  8. A

    VBA to sum formula up to the last row

    I have a defined named range and i want to add at the last row of the defined named range a sum formula which will sum the rows above. Can anyone help please?
  9. tycasey17

    Counting Using Defined Names

    I am wanting to count the number of personnel within a defined name. I have tried using =COUNTIF(A1:A5,_OFF) "_OFF" is the defined name having various titles in them. The overall outcome of the formula I am needing help with is to show there are 4 doctors of the entire range using the _OFF...
  10. N

    Getting Application Defined or object defined error for syntax Ws.Cells(1,3).Formula = .......

    I am getting following error Getting Application Defined or object defined error in syntax below ws.Cells(1, 3).Formula = "=(ws.Cells(1, 1).value) * (ws.Cells(1, 2).value)" Pl dont show any .formula with range thanks NimishK
  11. J

    VBA: Auto sort multiple defined ranges when changing another defined range??

    Hi, I'm trying to use VBA to automatically sort multiple defined ranges. However, it doesn't work. I've re-used code from a previous spreadsheet i made (that worked), however, in this spreadsheet i need to sort multiple ranges. Also these should only change when i change the values in a cell...
  12. S

    User Defined Function Revisited giving #VALUE!

    I have recently opened a User Defined Function I explored several months ago and have found that it does not want to return output in its current standing. After inserting the User Defined Function in a random cell on a worksheet and inputting data ranges and other values to specify the type of...
  13. D

    Sub or function not defined

    Whenever I open my spreadsheet I get a error, Sub or function not defined. This code is highlighted Sub workbook_open() ActiveSheet.Unprotect Password:="services" ListObjects("Services").ListColumns("10%Increase").DataBodyRange.Value = "1" ActiveSheet.Protect...
  14. K

    Defined Names contain autofilter ranges?

    I want to loop through all of the defined names pertaining to my sheet. That's the easy part, the issue i am encountering is that the workbook's many auto filter ranges must be stored as a defined name, which is not want i want. None of those filters were named intentionally. And the code i'm...
  15. P

    Dynamic Named Range

    Hello all. I apologize if the subject title seems vague. I will try to put into words what I would like to accomplish, if possible. Let's say I have one workbook called Template.xlsx. In it I have defined a range name "AccountType_Eng" (=DropDownLists!$B$4:$B$201) I use another client...
  16. S

    Object Defined Error

    With Workbooks(COMBINED).Worksheets(NameVar) .Range("A6", Range("A6").End(xlToRight).Offset(-1, 0)).Copy I have an "application or object defined error" on the lower defined line of code. How is the correct way to write this? I would like to be able to copy a range from "A6: some column...
  17. S

    Application Defined or Object Defined Error

    I have an application defined or object defined error on the following line: SearchArray = Sheets("CurrentSheet").Range(Cells(6, 5), Cells(EndArray, 6)) EndArray is an integer variable and SearchArray is a Range variable. I don't see where the problem is occurring. Any ideas?
  18. S

    Change the size of a range

    I have a range defined by two variables. Both variables are located in a single column. I would like to select and copy the cells in the adjacent range. How can I expand the selection defined by the values in the first column to include the values in the second column. I tried the code below...
  19. S

    Conditional Logic VBA

    I am using the line below to determine characteristic qualities of a set of values. How is this being read? I would like for the test to meet the first part of the test and at least one of the second characteristics defined by the OR statement and contained within parenthesis. If Cells(kk, 3)...
  20. R

    issue while copying and pasting

    Hello guys!! I need your assistance for the below code, its not working. Sub debug_ing() Worksheets(7).Cells(1, 1).End(xlDown).Copy Worksheets(7).Cells(1, 9).End(xlDown).Offset(1, 0).PasteSpecial End Sub When I am runnng this code, error msg box pops-up. Its says "Run time error 1004"...

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