+ Reply to Thread
Results 1 to 6 of 6

Msgbox to input to last row problem with hidden rows

  1. #1
    Registered User
    Join Date
    08-13-2011
    Location
    Vancouver, Wa
    MS-Off Ver
    Excel 2007
    Posts
    6

    Msgbox to input to last row problem with hidden rows

    Hi, everyone. I too wanted to use Msgbox to input to last row. I have an Add new account button executing the macro below, with intentions putting input in A14 and below.
    Columns:
    Account Make pmt Bill type Pmt Interval

    Type & Pmt Interval are date validation lists containing options from rows 4 to 13. So rows 4 to 13 are hidden with "starting" row at 14. If I use the macro as is, it sends input to A4 only, even if I populate a4..a13 with filler. If those rows are unhidden and populated, the input goes to A14.

    How can I use this macro or modify it to populate cells after the hidden rows above it? The code follows:

    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by Donnerblue; 10-12-2011 at 11:55 AM. Reason: Added code tags- Please read forum rules !

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Msgbox to input to last row problem with hidden rows

    You'll need a method for finding the lastrow that does not use .End(xlUp) method if you want to work even on hidden rows.


    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-13-2011
    Location
    Vancouver, Wa
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Msgbox to input to last row problem with hidden rows

    Jerry,
    Thanks for getting back to me. I replaced my code with yours and it isn't working correctly in my sheet. I've uploaded the sheet to let you see.
    Thanks again
    Rick
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Msgbox to input to last row problem with hidden rows

    So many things... heh.

    Stop merging rows/cells unnecessarily. It will continuously create problems for you. If you want a taller row, increase the height of the one row. If you want a centered footer at the bottom of your sheet, put it into your PAGE SETUP > Header/Footer setups.

    The hidden rows at the top of the page are nonsensical to me. These "lists" should be on another sheet (called LISTS maybe?) where you can edit them at will and then use them as real Data Validation lists with named ranges.

    Anyway, I left those hidden rows in for now and made sure the macro I gave you will start at row 13 if there is no other data, but I removed the merged stuff so it would not interfere with the macro "sensing" where the bottom row of data really is.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-13-2011
    Location
    Vancouver, Wa
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Msgbox to input to last row problem with hidden rows

    Thanks Jerry, I implemented those tips and the macro. Works great. I appreciate your instruction. I'm always ready to learn. Have a great day. Rick

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Msgbox to input to last row problem with hidden rows

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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