+ Reply to Thread
Results 1 to 7 of 7

Macro for hiding rows before print not working

  1. #1
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Van Wert, Ohio
    MS-Off Ver
    Excel 2010, 2000
    Posts
    104

    Macro for hiding rows before print not working

    I am having an issue with debugging

    Runtime error 438
    Object doesn't support this property or method

    Here is my code:

    Please Login or Register  to view this content.
    The code line that is standing alone is where my debugger is directing me towards, but I am unfamiliar enough to work this through to a working solution.

    Can you/anybody be of assistance.

    Thanks in advance
    Last edited by gocolonel77; 05-28-2013 at 10:14 PM. Reason: added code brackets

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro for hiding rows before print not working

    Can you first place your code in CODE BRACKETS? You are not a new forum user and this issue prevent any answer for the moment.
    Answer is quite simple, though.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Van Wert, Ohio
    MS-Off Ver
    Excel 2010, 2000
    Posts
    104

    Re: Macro for hiding rows before print not working

    Thanks p24leclerc. I am new to posting code, so I am glad to have learned something new today.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro for hiding rows before print not working

    Try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Macro for hiding rows before print not working

    Try this

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Van Wert, Ohio
    MS-Off Ver
    Excel 2010, 2000
    Posts
    104

    Re: Macro for hiding rows before print not working

    Please Login or Register  to view this content.
    Thanks, that was simple. Now the line below the initial problem is giving me the same error message. The line in questions stands alone in the line of code.

    Thanks again.

  7. #7
    Registered User
    Join Date
    11-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Macro for hiding rows before print not working

    Replace your code with mine and you should be in business.

+ 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