Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shift formulas, but not formats

I am trying to insert a row that duplicates formulas, and shifts the
other rows down. This works great, changing the cells exactly as I want
them:

Public Sub InsertFiscalMonthData()

Sheets("DATASUMMARY").Select
Application.CutCopyMode = False
With Rows("2:2")
.Copy
.Insert Shift:=xlDown
End With

End Sub

....EXCEPT...

I want the first 12 rows to have a bold border around them. When I
insert the row, the border grows with it.

Is there any way to suppress the border reformatting?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Shift formulas, but not formats

Joel,

I think you'll have to erase and reborder the region after you
insert the cells.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"JoelW" wrote in message
oups.com...
I am trying to insert a row that duplicates formulas, and shifts
the
other rows down. This works great, changing the cells exactly
as I want
them:

Public Sub InsertFiscalMonthData()

Sheets("DATASUMMARY").Select
Application.CutCopyMode = False
With Rows("2:2")
.Copy
.Insert Shift:=xlDown
End With

End Sub

...EXCEPT...

I want the first 12 rows to have a bold border around them.
When I
insert the row, the border grows with it.

Is there any way to suppress the border reformatting?

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shift Differential TimeSheet Formulas Sophia Excel Worksheet Functions 10 May 9th 23 11:46 AM
Formats in formulas Paul Excel Discussion (Misc queries) 3 November 25th 08 08:19 AM
Can formats follow formulas? Phrank Excel Worksheet Functions 2 June 10th 06 03:09 AM
What's the best way to add a row and copy formulas and formats? Michael at Sigcon Excel Discussion (Misc queries) 1 March 17th 06 02:43 PM
Cell Formats in formulas C. Lewis Excel Discussion (Misc queries) 1 January 5th 05 06:37 PM


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"