Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Retrieving Current Row,Columns & copying Format from Row,Columns a

Currently I manually insert a new line of data into a worksheet from an
external source then using a macro I reformat the fill,font & alignment of
the row.

Within the inserted row at columns H & I - I want to copy the format of the
of the inserted row minus one's columns H & I (ie highlight current Row
-1(H:I) and paste special the format into inserted row (H:I)

Thank You
  #2   Report Post  
Posted to microsoft.public.excel.programming
KC KC is offline
external usenet poster
 
Posts: 55
Default Retrieving Current Row,Columns & copying Format from Row,Columns a

May be

rownr = ActiveCell.Row
Cells(rownr - 1, "H").Resize(, 2).Copy
Cells(rownr, "H").Resize(, 2).PasteSpecial xlPasteFormats

"Chris Maddogz" wrote in message
...
Currently I manually insert a new line of data into a worksheet from an
external source then using a macro I reformat the fill,font & alignment of
the row.

Within the inserted row at columns H & I - I want to copy the format of
the
of the inserted row minus one's columns H & I (ie highlight current Row
-1(H:I) and paste special the format into inserted row (H:I)

Thank You



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Retrieving Current Row,Columns & copying Format from Row,Colum

Worked fine Thanks You

"KC" wrote:

May be

rownr = ActiveCell.Row
Cells(rownr - 1, "H").Resize(, 2).Copy
Cells(rownr, "H").Resize(, 2).PasteSpecial xlPasteFormats

"Chris Maddogz" wrote in message
...
Currently I manually insert a new line of data into a worksheet from an
external source then using a macro I reformat the fill,font & alignment of
the row.

Within the inserted row at columns H & I - I want to copy the format of
the
of the inserted row minus one's columns H & I (ie highlight current Row
-1(H:I) and paste special the format into inserted row (H:I)

Thank You




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
Copying conditional format across columns Porky79 Excel Discussion (Misc queries) 1 April 24th 09 08:28 PM
Function To Select the Hidden Rows & Columns in the Current Sheet TGV Excel Discussion (Misc queries) 1 January 26th 09 05:37 PM
Retrieving 'current' data tommo Excel Worksheet Functions 2 February 28th 08 02:02 PM
Matching multiple columns and retrieving a value shzdug Excel Worksheet Functions 1 August 9th 06 10:45 PM
Hide the current month columns [email protected] Excel Programming 9 February 28th 06 11:07 PM


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