LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default Retain cell formatting?

When we are setting the value of a cell we are losing formatting €“ is there
anyway we can retain the cell formatting

r.set_Value(Excel1.XlRangeValueDataType.xlRangeVal ueDefault, factValue); //
factValue is string

r.Cells.NumberFormat =
Thread.CurrentThread.CurrentCulture.NumberFormat.N umberDecimalSeparator ;


Is there anything else needs to be done ?


Thanks

 
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
How do I retain cell formatting when I export from Crystal Reports 11into a .xls file? [email protected] Excel Discussion (Misc queries) 0 January 18th 08 06:52 PM
copy/paste want to retain cell coloration but lose the conditional formatting source data Keith R Excel Discussion (Misc queries) 6 March 5th 07 09:10 PM
retain cell formatting bob777 Excel Discussion (Misc queries) 1 November 2nd 05 05:02 PM
Retain cell number formatting in Word Mail Merge chriskxp2123[_4_] Excel Programming 0 August 16th 05 08:39 PM
Increase / decrease decimal - retain cell formatting kbellendir Excel Programming 3 October 28th 04 11:09 PM


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