+ Reply to Thread
Results 1 to 6 of 6

Request for VBA to automatically hide all but one blank row whilst maintaining formatting.

  1. #1
    Registered User
    Join Date
    05-16-2018
    Location
    Devon
    MS-Off Ver
    2013
    Posts
    3

    Request for VBA to automatically hide all but one blank row whilst maintaining formatting.

    Good Morning/Afternoon/Evening All,

    First off I'm very unfamiliar with the VBA coding so basically a rookie.

    Bit of a tricky one here, I'm trying to set up a dynamic list within a spreadsheet that will allow users to continue adding data, automatically hiding and unhiding rows as information changes.
    The work area is from A13:M318 and contains pre existing conditional formatting to colour the rows based on the data entered.

    Is there any way to have the Macro only allow one blank row under the last row of data and unhide/hide the next row down as data is input/deleted. All this whilst still maintaining any blank rows between rows of information half way through the spreadsheet (unless there's a way of shifting information up as a complete row as free rows become available).

    I've had little success in finding anything that applies to my criteria and learning the coding specifics is taking time.

    Many thanks for any advice in advance.

    Tom

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Request for VBA to automatically hide all but one blank row whilst maintaining formatt

    Welcome on board originalspoons
    Can you attach a short Excel sample showing your needs
    PCI
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    05-16-2018
    Location
    Devon
    MS-Off Ver
    2013
    Posts
    3

    Re: Request for VBA to automatically hide all but one blank row whilst maintaining formatt

    Excel Example.jpg

    Apologies for the wait, I've been out of the office.

    Pretty tricky problem, I don't even know where to start with coding this thing.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Request for VBA to automatically hide all but one blank row whilst maintaining formatt

    Can you attach a REAL Excel file to prepare the macros.
    Your first comment is clear for the second one: last entry of data ... it is not row 19 ??

  5. #5
    Registered User
    Join Date
    05-16-2018
    Location
    Devon
    MS-Off Ver
    2013
    Posts
    3

    Re: Request for VBA to automatically hide all but one blank row whilst maintaining formatt

    Here we are.

    Yes the last entry of data is row 19, I just need to be able to extend the list as needed so there always needs to be a fresh blank row at the bottom of the table.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Request for VBA to automatically hide all but one blank row whilst maintaining formatt

    See next code to put in tab code
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] Automatically hide rows based on conditional formatting
    By fizzwolf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2017, 04:50 AM
  2. How to automatically hide blank rows in a table
    By Meggo12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2016, 01:36 PM
  3. Replies: 0
    Last Post: 10-06-2016, 11:36 AM
  4. Replies: 7
    Last Post: 01-21-2016, 09:10 PM
  5. [SOLVED] Split Workbook into Tabs whilst Maintaining formula and dropdowns
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2014, 07:37 PM
  6. Replies: 0
    Last Post: 11-15-2011, 05:25 PM
  7. mail merge from excel whilst maintaining format
    By mania112 in forum Excel General
    Replies: 5
    Last Post: 11-04-2009, 05:30 PM

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