select method

  1. K

    Excel VBA Select Method - de-selecting pasted cells

    I have a 100x100 spreadsheet to which I paste data from another workbook using a macro. After the paste has been carried out, the entire recipient WS is shaded (selected). I would like to select a single cell in this WS so that the entire WS is not left selected. Here's the code I have tried...
  2. K

    Run Time Error '1004': Select Method of Worksheet class failed

    Hi, I'm having trouble with this error that appears whenever I try to run macros. Sub Filter() Sheets("Combination").Select Range("A4:AJ598").AutoFilter ActiveSheet.Range("$A$4:$AJ$598").AutoFilter Field:=1, Criteria1:="Y" ActiveSheet.AutoFilter.Range.Copy...
  3. Y

    Code running different in PrivateSub Workbook_Open

    Hi All! This forum has been awesome for getting me started on VBA, I'm not a programmer and I had to pick this up now because the company that I'm working for has a really outdated system and we have to do a lot of Excel manipulation to get the files the way we need them. I appreciate any help...
  4. S

    Select Method of Worksheet Class Failed

    I have an existing excel template which is working fine. We just added some tabs and incorporate on the macro, then I encounter the error. When I try to debug the error is with the 2nd line as per below (in bold font and underlined) It says that Identifier under cursor is not recognized...
  5. A

    Select method of Range class failed

    Hello, I have this code in a form, which is designed to populate a combo box with all the values of non-empty rows in a given column. The problem with this is that a "Runtime Error: 1004 Select method of Range class failed" occurs ' set variables Dim wsSheet As Worksheet Dim rngNext As...

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top