Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Storing data and its format

Hi all!

I work with OLE, and want to do this:

somecell.value = some date (which i have in mm.dd.yyyy format
numberformat = "yyyy" // year only

nextcell.value = previous cell
numberformat = "mmm" // month as name

I have tried this, but it does not work:

$WB-Sheets(1)-Cells($excel_index,1)-NumberFormat="mm.dd.yyyy";
$WB-Sheets(1)-Cells($excel_index,1)-
Value=GetMyDateFormat(odbc_result($result,3));

$WB-Sheets(1)-Cells($excel_index,1)-NumberFormat="yyyy";
$WB-Sheets(1)-Cells($excel_index,2)-NumberFormat="mm.dd.yyyy";
$WB-Sheets(1)-Cells($excel_index,2)-
Value=GetMyDateFormat(odbc_result($result,3));

$WB-Sheets(1)-Cells($excel_index,2)-NumberFormat="mmm";

GetMyDateFormat returns the date in "mm.dd.yyyy" format.

Is there an Excel guru here?

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
storing real time data Meng Excel Discussion (Misc queries) 1 September 15th 06 04:58 AM
storing data JK57 Excel Worksheet Functions 3 May 1st 06 12:16 AM
Is Excel good for storing data that constantly updates? Lallo Excel Discussion (Misc queries) 2 December 15th 05 12:18 PM
Storing Formulas to Use NEWB Excel Worksheet Functions 3 December 2nd 05 05:23 PM
Storing data Bob Mckenzie New Users to Excel 3 July 30th 05 07:33 PM


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