LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default % Formated cells randomly changing to hh:mm:ss format

Hi,

I am using Excel97 VBA to populate named cells on Sheet1. The source
data is in Sheet2 (All cells formatted 'General'. I have code to pick
up the values into an array and it works fine.

My issue is that Sheet1 cells that are formatted as %s are *sometimes*
(I can't see the pattern) reformatted to the time format when I place a
value in them. I.e. What should be 92% can show up as 10:04:48 PM

The code I am using to populate the named cells is:
for i = 1 to 500
valueName=myvalues(i,1)
Thisworkbook.names(valueName).referstorange.value = myvalues(i,2)
next

Any ideas?

Thanks,
Michael Deathya

 
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
Format of cells Changing on thier own GCC Excel Worksheet Functions 0 July 16th 09 02:09 PM
Hyperlinks in Excel are randomly changing דביר Excel Discussion (Misc queries) 1 January 13th 09 03:34 PM
changing dates in a date formated column ? Tim[_7_] Excel Discussion (Misc queries) 2 October 18th 07 03:53 AM
Copying a format that has been conditionally formated taloma715 Excel Discussion (Misc queries) 1 January 14th 06 03:07 PM
randomly select value WITHOUT changing Doyle Brunson Excel Worksheet Functions 3 August 26th 05 12:52 AM


All times are GMT +1. The time now is 02:40 PM.

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"