Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Why my cell format is not copied when I copied workbook?

I copied one workbook to another workbook using the following code..

Sub Test()

Dim Nwb As Workbook
Dim i As Integer

Application.ScreenUpdating = False
Sheets(Array("alpha", "bravo", "charlie", "delta")).Copy

Set Nwb = ActiveWorkbook

Nwb.Sheets.Select
Cells.Select
Selection.Interior.ColorIndex = xlNone

Application.ScreenUpdating = True

End Sub

But why is it that the some of my customised cell format in my original
workbook does not get copied over to the new workbook.
The cell format that does not get copied is such:
#,##0_);[Red](#,##0)

This means that a negative number will be shown in red and in brackets.
Though negative numbers in the new workbook are shown in red, they are
not shown in brackets. Anyone care to enlighten me on this?


---
Message posted from http://www.ExcelForum.com/

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
Can a workbook be prevented from being copied? Nest Egg George[_2_] Excel Discussion (Misc queries) 1 January 7th 10 03:20 PM
Copied formula produces unexpected copied results Robert New Users to Excel 1 December 5th 08 04:11 PM
Time format in a cell getting copied automatically into another ce Sasikiran Excel Discussion (Misc queries) 4 August 23rd 07 06:20 AM
cell format changes when formula copied? Todd Excel Worksheet Functions 1 April 14th 06 09:33 PM
format cell to change color when copied tawnee jamison Excel Discussion (Misc queries) 1 February 16th 05 08:55 PM


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