+ Reply to Thread
Results 1 to 6 of 6

Excel Error 1004: button that brings me to the same cell but on another tab

  1. #1
    Registered User
    Join Date
    12-15-2021
    Location
    Utrecht, Netherlands
    MS-Off Ver
    Excel1
    Posts
    3

    Excel Error 1004: button that brings me to the same cell but on another tab

    Hello guys!

    I have been having an error with a button I made, I have little to no coding knowledge. The button is supposed to bring me to the same cell on another tab called "Screens".

    The code:

    Sub NaarScreens()
    rij = ActiveCell.Activate
    Worksheets("Screens").Activate
    Cells(rij, 1).Select
    End Sub

    It marks the last row Cells(rij, 1).Select yellow and it seems the issue is with this piece of code.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Excel Error 1004: button that brings me to the same cell but on another tab

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Excel Error 1004: button that brings me to the same cell but on another tab

    Hi & welcome to the board.
    Another option
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-15-2021
    Location
    Utrecht, Netherlands
    MS-Off Ver
    Excel1
    Posts
    3

    Re: Excel Error 1004: button that brings me to the same cell but on another tab

    First and foremost thanks for awnsering! unfortunately, I keep having the same error even with this code, I read on some forums that this could be the doing of my machine specifically but I don't really know.

  5. #5
    Registered User
    Join Date
    12-15-2021
    Location
    Utrecht, Netherlands
    MS-Off Ver
    Excel1
    Posts
    3

    Re: Excel Error 1004: button that brings me to the same cell but on another tab

    Thanks for the welcome! and i appreciate the help, this solution worked for me!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Excel Error 1004: button that brings me to the same cell but on another tab

    Glad to help & thanks for the feedback

    With protonLeah's code you need to make this change & it should work
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. This Macro sometimes it works, sometimes it brings up a error 1004
    By asifdawood in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-21-2021, 03:54 PM
  2. Long Formula and Autofill brings 1004 error in Excel 97-2003 file
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2018, 05:53 AM
  3. [SOLVED] Run-time error 1004 when inserting row w/ button
    By the block in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2014, 07:21 PM
  4. Error 1004 with save button
    By koconn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2013, 09:55 AM
  5. [SOLVED] Macro Refresh Button: Run-time Error 1004
    By j_henley123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2012, 07:12 AM
  6. error 1004 application defined error (Moving click button)
    By mdavid800 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2011, 10:13 AM
  7. Button programming Run-time error '1004' with range
    By El_Pablo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2006, 11:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1