+ Reply to Thread
Results 1 to 5 of 5

Add new header to next rows automatic

  1. #1
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Add new header to next rows automatic

    Hi all expert,

    I would like to ask your help, which is need to add header to next row is "Total Expenditures" the add new header to the next to row as my sample file below:
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Add new header to next rows automatic

    Yukioh

    As you posted in the VBA Macro section, I asume you are looking for a macro to automate your job.
    Tell me if I understand correctly the task you need to do with this macro:

    .- check in the active sheet ( only in one, or in many ?), if the last cell down in column B, contains "Total Expenditures"
    .- If the answer is YES, then leave 2 blank lines
    .- In the next row, in column B write " Xx. Summary by ProYy "
    . .- How do you know what to put instead of: Xx and Yy , because it looks like they are variable.
    .- In the next 2 rows you will put some more info such as "Code" ; "Description"
    . .- Are they going to be always the same word ?
    .- etc.
    .- etc.
    Barriers are there for those who don't want to dream

  3. #3
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Re: Add new header to next rows automatic

    Hi vichopalacios,

    Please find my answer in blue color below:

    - check in the active sheet ( only in one, or in many ?), if the last cell down in column B, contains "Total Expenditures" YES
    .- If the answer is YES, then leave 2 blank lines YES
    .- In the next row, in column B write " Xx. Summary by ProYy " YES
    . .- How do you know what to put instead of: Xx and Yy , because it looks like they are variable. YES, we need to set this in some rows to be reference
    .- In the next 2 rows you will put some more info such as "Code" ; "Description" YES
    . .- Are they going to be always the same word ? YES
    .- etc.
    .- etc.

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Add new header to next rows automatic

    Hi yukioh

    I've prepared a small code for you, it can be used as a starting point.
    I am assuming that you have allways the structure at the beggining of your page.
    You can change the texts as you like
    I hope it will do what you need

    Please Login or Register  to view this content.
    Merry Christmas

  5. #5
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Re: Add new header to next rows automatic

    Thank you much

+ 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. Automatic header and footer
    By seeusoon in forum Excel General
    Replies: 3
    Last Post: 11-20-2015, 11:32 PM
  2. automatic updating date header
    By ned 51 in forum Excel General
    Replies: 3
    Last Post: 04-04-2014, 06:48 AM
  3. Replies: 1
    Last Post: 11-11-2013, 04:27 PM
  4. Need to copy header row in group to all rows below header; stop if blank and repeate
    By jmcaleer10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2013, 11:09 AM
  5. Replies: 0
    Last Post: 08-28-2005, 02:05 PM
  6. Header rows repeat":Header
    By Khalil Handal in forum Excel General
    Replies: 1
    Last Post: 05-09-2005, 08:06 AM

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