| View previous topic :: View next topic |
| Author |
Message |
venkat Power User

Joined: 11 Nov 2003 Posts: 64
|
Posted: Tue Jan 27, 2004 6:18 am Post subject: conversion |
|
|
Dear All,
i have written macro which will pick up values from the cells.
If i say "oCell.String", it returns string value - no issues
"oCell.Value", it returns numeric value - no issues
but if i want the date then
what i have done is
i declared a variable of date format, then assigning the cell value, it works some times also it fails saying that "Data type mismatch"
ie
dim varDate as Date
varDate = oCell.String
My query is how to get the date value directly from the cell.
Regards
Venkat |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
|