Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Formats of the Row above


Excel Experts,

What code would I use to say,

Make the format of each cell in this row, the same as the format of the cell
in the row above ?

Thanks,
Alan

--
achidsey
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formats of the Row above

ActiveCell.Offset(-1,0).EntireRow.copy
Rows(ActiveCell.row).Pastespecial xlPasteFormats

--
Regards,
Tom Ogilvy


"achidsey" (notmorespam) wrote in message
...

Excel Experts,

What code would I use to say,

Make the format of each cell in this row, the same as the format of the

cell
in the row above ?

Thanks,
Alan

--
achidsey



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Formats of the Row above

Application.ScreenUpdating = False
With ActiveCell
.Offset(-1, 0).EntireRow.Copy
.EntireRow.Cells(1).PasteSpecial xlPasteFormats
.Select
End With

Application.CutCopyMode = False
Application.ScreenUpdating = True


Tim


"achidsey" (notmorespam) wrote in message
...

Excel Experts,

What code would I use to say,

Make the format of each cell in this row, the same as the format of
the cell
in the row above ?

Thanks,
Alan

--
achidsey



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Formats of the Row above

Tom and Tim, Thanks for the response. Alan

--
achidsey


"achidsey" wrote:


Excel Experts,

What code would I use to say,

Make the format of each cell in this row, the same as the format of the cell
in the row above ?

Thanks,
Alan

--
achidsey

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
Conditional Formats, how to scroll and view all formats? Bill E Excel Worksheet Functions 0 May 12th 10 07:58 PM
Copying formats - column widths, formats, outlining to worksheets DavidBr318 Excel Worksheet Functions 4 August 14th 09 05:03 AM
Conditional formats- paste special formats? jcarney Excel Discussion (Misc queries) 1 November 1st 07 06:37 PM
paste conditional formats as formats leo Excel Discussion (Misc queries) 2 July 5th 07 10:06 AM
Formats: Too many different cell formats error message [email protected] Excel Programming 3 February 1st 05 01:34 AM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"