Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Copying Question

Hello,
I have the code below:

ActiveCell.Offset(28, 0) = CS.Cells(i, 23)

Question: how can I move the formatting at the same time. When the CS.Cells
is a date, it gets set to the general format.

Thanks,

Bill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Copying Question

try
=format(cs.cells(i,23),"mm/dd/yy")
or
with ActiveCell.Offset(28, 0)
..value = CS.Cells(i, 23)
..numberformat= desired format
end with
--
Don Guillett
SalesAid Software

"Bill" wrote in message
ink.net...
Hello,
I have the code below:

ActiveCell.Offset(28, 0) = CS.Cells(i, 23)

Question: how can I move the formatting at the same time. When the
CS.Cells is a date, it gets set to the general format.

Thanks,

Bill



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Copying Question

Bill,
Use copy:

CS.Cells(i, 23).copy ActiveCell.Offset(28, 0)

"Bill" wrote:

Hello,
I have the code below:

ActiveCell.Offset(28, 0) = CS.Cells(i, 23)

Question: how can I move the formatting at the same time. When the CS.Cells
is a date, it gets set to the general format.

Thanks,

Bill



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 Dates Question Von Fourche Setting up and Configuration of Excel 6 September 6th 09 05:07 PM
Question on copying formulas Meenie Excel Worksheet Functions 1 February 13th 08 02:47 PM
Copying Formulas Question Tom. Excel Discussion (Misc queries) 4 April 24th 06 03:55 AM
copying formula question DeeZi Excel Discussion (Misc queries) 2 June 30th 05 09:41 PM
Copying and Pasting---Another question... Tia Excel Discussion (Misc queries) 1 June 7th 05 07:41 PM


All times are GMT +1. The time now is 09:24 AM.

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"