Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Duplicating a cell (EXACTLY)

Hi all:

I'm using Excel 2003. I need to know how to duplicate a cell (both the
contents AND any formatting) from one sheet of a workbook to another.

Normally, I would use:

{Dim, Set}
Sheet2.Cells(1,1) = Sheet1.Cells(1,1)

but this only duplicates the contents. If, for example, the cell on Sheet1
contained MARTY, with a red background and bold italics font with a cell
comment, the cell in Sheet2 would contain MARTY with default background and
font settings and no comment.

How can I make an EXACT duplicate of the cell?

Please advise. Thanks in advance.

MARTY
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Duplicating a cell (EXACTLY)

One way:

Sheet1.Cells(1, 1).Copy Destination:=Sheet2.Cells(1, 1)

In article ,
"Marty" wrote:

I'm using Excel 2003. I need to know how to duplicate a cell (both the
contents AND any formatting) from one sheet of a workbook to another.

Normally, I would use:

{Dim, Set}
Sheet2.Cells(1,1) = Sheet1.Cells(1,1)

but this only duplicates the contents. If, for example, the cell on Sheet1
contained MARTY, with a red background and bold italics font with a cell
comment, the cell in Sheet2 would contain MARTY with default background and
font settings and no comment.

How can I make an EXACT duplicate of the cell?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Duplicating a cell (EXACTLY)

That worked well. Thanks very much.

"JE McGimpsey" wrote:

One way:

Sheet1.Cells(1, 1).Copy Destination:=Sheet2.Cells(1, 1)

In article ,
"Marty" wrote:

I'm using Excel 2003. I need to know how to duplicate a cell (both the
contents AND any formatting) from one sheet of a workbook to another.

Normally, I would use:

{Dim, Set}
Sheet2.Cells(1,1) = Sheet1.Cells(1,1)

but this only duplicates the contents. If, for example, the cell on Sheet1
contained MARTY, with a red background and bold italics font with a cell
comment, the cell in Sheet2 would contain MARTY with default background and
font settings and no comment.

How can I make an EXACT duplicate of the cell?


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
Formula for Duplicating info from one cell to another Timbo Excel Discussion (Misc queries) 9 April 14th 08 05:23 PM
Formula for duplicating info from one cell to another Timbo New Users to Excel 5 April 11th 08 09:00 PM
Duplicating Rows Based on Cell Value [email protected] Excel Discussion (Misc queries) 6 September 19th 06 11:35 PM
Duplicating cell value between worksheets Dennis Excel Worksheet Functions 6 January 12th 06 03:42 AM
Duplicating Cell Information [email protected] Excel Worksheet Functions 1 March 10th 05 12:47 PM


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