LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Numberformat applied but does not change data

Does anybody have a solution for this?

I really need it. I have been searching and trying to get this resolved for
days. I can't believe that i am the only one that ever had a problem
formatting numerics in a newly created Excel worksheet through VB 6.

I'm ready to turn this thing over to the client soon and it will not have
the numeric fields formatted properly.

Nobody else has had this problem in VB6? Where they put a string of numbers
into a cell and used the Numberformat = "###,##0.00_);[Red](###,##0.00)"
property. Then when they open the workbook the numbers are *not* formatted.

I guess my last resort would be to pay Microsoft support to help me rosolve
it.

Any help would be gratefully appreciated.

Thanks,
Tony

"Tony Girgenti" wrote in message
...
Hello.

I'm using VB6.0, SP6 and Excel 2003, SP3.

I'm formatting a worksheet column and then filling the columns with data.
The format gets applied, but the data is not appearing as expected. These
lines of code are what i am using to format the column with a Percent.

newExcelWorkSheet.Columns("D").NumberFormat = "0.00%"
newExcelWorkSheet.Columns("D").HorizontalAlignment = xlCenter

When i open the Excel workbook, the data is there and those cells show it
formatted as Percent with 2 decimals. The data is sent to the value of
the
cell as "015.00"(without the quotes), yet when open the workbook, it
appears
as 015.00. I was expecting it to appear as 15.00%.

The HorizontalAlignment works. Why is the data not appearing as a
percent?

If i open the workbook and put 015.00 in one of the formatted cells, it
does
appear as 15.00%.

Any help would be gratefully appreciated.

Thanks,
Tony



 
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
Change applied % after a certain value reached? LesB Excel Worksheet Functions 1 October 1st 10 10:19 PM
Unable to change NumberFormat Property Geoff Excel Programming 2 February 12th 07 12:36 AM
Can't change NumberFormat via Command button Ade Excel Programming 3 February 2nd 07 01:28 AM
Can not change the numberformat X.Yu[_2_] Excel Programming 3 October 19th 04 02:59 AM
Can not change the numberformat X.Yu Excel Programming 6 October 18th 04 09:19 AM


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