LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default VB.Net - retrieve actual formula string

From the imediate Window (from an at-random file I have open)

? Activecell.Formula
=IF(ISBLANK(H7),0,IF(H7<=TODAY(),D7,0)) << Produces in text form

HTH

"Grant" wrote:

Hi,

I am using VB.Net (Interop) to reference an Excel Workbook, and want to
retrieve the actual formula string rathar than the result of the formula.

So if the formula in Excel was =SUM(B5:B8) then the string I would want to
return would be "=SUM(B5:B8)"

I have tried almost every property but still can only seem to get the value.

Any help would be much appreciated.

Thanks in advance,

Grant.

 
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
How to retrieve the value within string? Eric Excel Discussion (Misc queries) 11 April 20th 10 12:47 PM
Replacing a formula with the actual string or number Erik Excel Discussion (Misc queries) 1 February 6th 10 06:17 AM
How to retrieve certain char within a string? Eric Excel Discussion (Misc queries) 1 July 3rd 07 03:02 AM
How to retrieve certain text from string? Eric Excel Discussion (Misc queries) 5 December 3rd 06 07:48 PM
How to retrieve certain text from string? Eric Excel Worksheet Functions 2 December 3rd 06 02:06 PM


All times are GMT +1. The time now is 04:23 AM.

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"