Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-07-2019, 03:34 AM
Willby Willby is offline Add white space between rows Windows 10 Add white space between rows Office 2016
Novice
Add white space between rows
 
Join Date: Feb 2019
Posts: 1
Willby is on a distinguished road
Default Add white space between rows

I don't know of any native way to add white space between rows, but this simple macro does the job. It prompts the user to input a value for the extra space (which is created by increasing the row height of each row by a certain amount greater than the 'auotfitted' height):

Code:
#Sub RowHeight()

Dim rngRows, rngCell As Range
Dim h, n As Single

n = InputBox("Space to add:", "Add space between rows", 15)

Set rngRows = Range(Range("B2"), Range("B2").End(xlDown))
rngRows.Rows.AutoFit

For Each rngCell In rngRows
    h = rngCell.Height
    rngCell.RowHeight = h + n
Next


 End Sub#
Edit Mod : related to https://www.msofficeforums.com/excel...text-cell.html

Last edited by Pecoflyer; 02-08-2019 at 08:02 AM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add white space between rows white letter instead off space merletcollege Word 3 09-27-2018 01:19 AM
Add white space between rows Eliminate weird white space puff Word 7 03-12-2018 12:51 AM
Unwanted white space sassiebrat Word 2 10-03-2016 08:53 PM
Removed white space within same page. johnatanasoff Word 7 01-04-2016 07:44 AM
Add white space between rows white space seeker62 Word 12 07-16-2013 09:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft