Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Copyi8ng format after row insertion

I written code to insert a row. I am wanting to copy the
formatting of the row directly above the row I just
inserted (in the code below, row 34). Here is the code,
can someone please assist? Thanks.

Private Sub FXFE_Exp_Click()
Rows(34 + 1).EntireRow.Insert
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copyi8ng format after row insertion

Private Sub FXFE_Exp_Click()
Rows(34 + 1).EntireRow.Insert
Rows(34).Copy
Rows(35).PasteSpecial Paste:=xlFormats
Application.CutCopyMode = False

End Sub

--
Regards,
Tom Ogilvy


"Jeff" wrote in message
...
I written code to insert a row. I am wanting to copy the
formatting of the row directly above the row I just
inserted (in the code below, row 34). Here is the code,
can someone please assist? Thanks.

Private Sub FXFE_Exp_Click()
Rows(34 + 1).EntireRow.Insert
End Sub



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
automatic insertion of row renegade Excel Worksheet Functions 3 January 27th 10 10:58 AM
Row Insertion mlockman Excel Discussion (Misc queries) 0 April 17th 09 03:33 PM
Row Insertion Problem robot[_3_] New Users to Excel 2 February 7th 09 04:38 AM
Automatic row insertion PURVIANCE Excel Discussion (Misc queries) 1 December 6th 06 08:59 PM
Rows Insertion b166er Excel Worksheet Functions 3 August 2nd 06 06:52 PM


All times are GMT +1. The time now is 10:19 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"