+ Reply to Thread
Results 1 to 8 of 8

How to center print title in dynamic print area?

  1. #1
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    How to center print title in dynamic print area?

    I have some text in A1, A2 and A3 of my data sheet, I want to keep the data of these three cells A1, A2 and A3 as a print title and across the center of width of dynamic print area.
    That is, I want the print title of the dynamic print area to be center across dynamic area. Note that the dynamic print area is generated by a VBA code. Can anyone help me with this?
    VBA Code:

    Please Login or Register  to view this content.
    Last edited by Ariful Islam; 03-08-2023 at 01:39 PM. Reason: To correct errors and simplify interpretation

  2. #2
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    Re: How to center print title in dynamic print area?

    Quote Originally Posted by Ariful Islam View Post
    I have some text in A1, A2 and A3 of my data sheet, I want to keep the data of these three cells A1, A2 and A3 as a print title and across the center of width of dynamic print area.
    That is, I want the print title of the dynamic print area to be center across dynamic area. Note that the dynamic print area is generated by a VBA code. Can anyone help me with this?
    (Minor changes have been made to correct errors and simplify interpretation. Also attached files.)
    VBA Code:

    Please Login or Register  to view this content.
    Thanks ChatGPT!

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: How to center print title in dynamic print area?

    Where does the quoted section in Post #2 come from?
    Experience trumps academics every day of the week and twice on Sunday.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: How to center print title in dynamic print area?

    For people that are looking to solve the same or similar problem and end up on this page expecting to find a solution, how did you solve it?

  5. #5
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    Re: How to center print title in dynamic print area?

    Quote Originally Posted by jolivanes View Post
    Where does the quoted section in Post #2 come from?
    It's been almost a week since I posted, I thought maybe there was a mistake in my question, or maybe no one noticed my post in the crowd of posts. So I removed the code. Sorry for that.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: How to center print title in dynamic print area?

    No problem. Thanks for the explanation. Did you solve it?
    My take on it would be something like this.
    Please Login or Register  to view this content.
    Print from Row 4 on down or from wherever.

  7. #7
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    Re: How to center print title in dynamic print area?

    Quote Originally Posted by jolivanes View Post
    No problem. Thanks for the explanation. Did you solve it?
    My take on it would be something like this.
    Please Login or Register  to view this content.
    Print from Row 4 on down or from wherever.
    Thanks for your solution. Your solution is more Compact and easier then ChatGPT.

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: How to center print title in dynamic print area?

    Thanks for the update and good luck

+ 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. Replies: 4
    Last Post: 04-29-2019, 02:51 AM
  2. [SOLVED] Set print area for a dynamic range and launch print dialog
    By BONCH in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2017, 11:37 PM
  3. how to print using combobox and make dynamic range of a print area
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2014, 07:26 AM
  4. Code and Formula to print dynamic print area ranges
    By stpeter in forum Excel General
    Replies: 1
    Last Post: 10-15-2013, 03:33 PM
  5. Replies: 1
    Last Post: 09-05-2013, 03:32 AM
  6. [SOLVED] Need ‘Set Print Area’ Code for Dynamic Print Range based on Conditions
    By dosbirn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 12:13 PM
  7. Replies: 2
    Last Post: 01-04-2013, 04:22 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