Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel Formating questions

Few of questions
1) I have an embedded device pumping time data in excel using a format like
xxxUS, xxxMS, & xxxKS. How can I format the cells to understand the data as
numbers so I can plot it. Right now excel interprets it as text, I have
tried different cell formatting but no luck.

2) I am adding the above data from a VBScript using format like
objXL.Cells(x, y).Value = timedata. Is there a shortcut way from VBScript to
specify something like Sheet!Row:Column=Data in one shot.

3) The data comes from embedded device in a format like
"\$Excel\~Sheet\~Row\~Col\~Data\$". I am using regexp with a pattern
"\\\$|\\~" to parse it in subcomponents. Is there a .Net equivalent to
..Split() in vbscript to create a collection of subcomponents.


Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Formating questions

if your data was in a 2D array arrTimeData(1 x N, 1 x 1) you could do

ObjXl(cells(x,y).Resize(N,1).value = arrTimeData


I think you would have to remove the text from the end and just have numbers
in your array to get excel to see it as time. Time is stored as a fraction
of a 24 hour day, so 6 hours would be .25 (1/4th of a day).

--
Regards,
Tom Ogilvy


"Mr. NDIS" wrote in message
...
Few of questions
1) I have an embedded device pumping time data in excel using a format

like
xxxUS, xxxMS, & xxxKS. How can I format the cells to understand the data

as
numbers so I can plot it. Right now excel interprets it as text, I have
tried different cell formatting but no luck.

2) I am adding the above data from a VBScript using format like
objXL.Cells(x, y).Value = timedata. Is there a shortcut way from VBScript

to
specify something like Sheet!Row:Column=Data in one shot.

3) The data comes from embedded device in a format like
"\$Excel\~Sheet\~Row\~Col\~Data\$". I am using regexp with a pattern
"\\\$|\\~" to parse it in subcomponents. Is there a .Net equivalent to
.Split() in vbscript to create a collection of subcomponents.


Thanks




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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
Excel '07 Questions Geoff from LA Excel Discussion (Misc queries) 0 January 16th 08 04:28 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Excel/VBA Questions Chris Excel Programming 2 May 20th 04 08:11 PM


All times are GMT +1. The time now is 01:59 AM.

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"