Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Get cell contents literally through automation

I'm using Excel 2003 and trying to manipulate sheets with "C#" through Excel
automation.
If a cell has been entered with "=3 + 2", is it possible to get this
original string in stead of the calulated one "5"?
I tried <cell.Formula but this returns "5"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Get cell contents literally through automation

I don't use C#, so I don't know what the syntax would be; but, in VBA, you
would reference the Formula property of the cell rather than the Value
property. Here is what the VB code would look like...

MsgBox Range("A1").Formula

--
Rick (MVP - Excel)


"Tuyen Hoang" wrote in message
...
I'm using Excel 2003 and trying to manipulate sheets with "C#" through
Excel
automation.
If a cell has been entered with "=3 + 2", is it possible to get this
original string in stead of the calulated one "5"?
I tried <cell.Formula but this returns "5"


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
String variable name is incorrectly used literally John Keith Excel Programming 18 September 15th 08 01:34 AM
Recording Macro & trapping its contents via Automation VJ Excel Programming 0 October 16th 06 09:37 AM
Im literally a beginner, please help! genuinegal via OfficeKB.com Excel Programming 1 October 10th 05 12:10 PM
printing time literally Bart van den Burg Excel Programming 2 November 10th 04 07:58 PM
Literally - every other time Steph[_3_] Excel Programming 0 June 9th 04 08:50 PM


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