Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-19-2018, 12:35 PM
NoSparks NoSparks is offline Somehow getting extra blank rows with borders Windows 7 64bit Somehow getting extra blank rows with borders Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Excel doesn't automatically reset the used range until the workbook is saved.

This is untested but you might get a reset on the fly with one of these two instructions right ahead of putting in the boarders and fonts.
Code:
    ActiveSheet.UsedRange
    X = ActiveSheet.UsedRange.Rows.Count
'Put borders around new rows.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Template with background colors has extra blank page that will not delete. jspinelli27 Word 1 03-11-2018 02:27 PM
Section Break Inserts an Extra Blank Page Nathan8752 Word 3 12-09-2015 07:03 AM
Somehow getting extra blank rows with borders Delete blank rows between the two rows that contain data beginner Excel Programming 5 12-26-2014 12:29 AM
Extra lines in directroy when field is blank redzan Mail Merge 5 05-23-2014 06:40 PM
Somehow getting extra blank rows with borders Count rows and add blank rows accordingly Hoochtheseal Word VBA 1 01-29-2013 09:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:29 PM.


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