+ Reply to Thread
Results 1 to 7 of 7

Adapt Vba Code (Font Size & Merge Center)

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Adapt Vba Code (Font Size & Merge Center)

    hi all..
    maybe it's basic for you.
    the following code work well but i wat to modify/adapt with criteria:
    i have several sheets and that code work for multiple sheets. I want to :
    1. automatic insert 1 row in row or cell A1 (for all sheets - it's done)
    2. adding font size 14 (automatic in all sheet in cell A1 till E1 - not done)
    3. merge and center cell A1 till E1 for each sheet (not done)
    i have trying but not work here this code :
    Please Login or Register  to view this content.
    across posting https://www.mrexcel.com/board/thread...-cell.1146932/

    would you figure out a way.

    john m

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: Adapt Vba Code (Font Size & Merge Center)

    Hi John,

    Try below code ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Adapt Vba Code (Font Size & Merge Center)

    hi nankw83, thank you. Worked great!!

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: Adapt Vba Code (Font Size & Merge Center)

    Glad to help & thanks for the added rep.

  5. #5
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Adapt Vba Code (Font Size & Merge Center)

    hi nankw83, before run macro i must do insert 1 row in row 1 in cell a1 (multiple sheets via grouped sheets), then i run your code.
    how to make i'm don't do insert before.. i mean, how to showing automatically "Counting1,etc...in row 1) without insert 1 row before

    here compare itjoint pic.png
    Last edited by Jhon Mustofa; 09-30-2020 at 12:04 PM.

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: Adapt Vba Code (Font Size & Merge Center)

    If I understand your request correctly, try to add the line in blue below to the above code ...
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Adapt Vba Code (Font Size & Merge Center)

    yes, you're right..
    thank you!!!

+ 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. Add text to bottom of data then merge cells and change font size
    By xceler8or in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2018, 10:27 AM
  2. VBA code to expand selection based on value in next cell and then merge-and-center
    By amarkham in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2018, 06:15 PM
  3. [SOLVED] VB Code to undo Merge & Center and delete rows
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2017, 06:22 PM
  4. [SOLVED] Merge and Center Code
    By Chris Michaels in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2015, 11:43 AM
  5. Replies: 4
    Last Post: 03-03-2015, 10:37 AM
  6. Need a code to ask a user for a font size.
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2009, 08:23 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