+ Reply to Thread
Results 1 to 2 of 2

SET Statment Error with Object

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    Marrero
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post SET Statment Error with Object

    Hello,
    What's wrong with the last line of my code?
    The Set statement gives me a
    Run-time Error '424': Object Required


    Dim RowBtm
    Dim TotalRow As Range

    '
    ' Select/Copy Cost headers/Formulas
    '
    'turns off screen repainting so the user can't see what you're doing
    Application.ScreenUpdating = False
    'unhide the sheet you want to work
    Sheets("Cost_Columns_for_BOM").Visible = True

    Sheets("Cost_Columns_for_BOM").Select
    Set TotalRow = Range("O15:S15").Select

    TONY

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: SET Statment Error with Object

    Hi, Tony,

    maybe try it like this (no need to select the sheet with the sniplet posted here):
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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