Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default How run Evaluate on a specified Sheet

Hi all,
I am trying to run Evaluate on a sheet that is not currently active. I
have a formula stored as a String. The Evaluate function works great on
the currently active sheet. But when I try to attempt the same Evaluate
function on another sheet, it fails..

Dim fStr As String
Dim listing As Variant
Dim rng As Range
Dim codeSheet As String

listing = Evaluate(ThisWorkbook.Sheets(codeSheet)!fStr)
Here fStr is the expression to evaluate. This is not working. If I
remove the ThisWorkbook.Sheets(codeSheet)!, it will just work fine, but
always works only on the active sheet. Please advise me how I can
correct this.

Thanks in advance,

shishi

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
evaluate afdmello Excel Worksheet Functions 3 May 16th 10 09:11 PM
evaluate cell value with sheet name [email protected] Excel Worksheet Functions 5 October 4th 07 09:41 PM
Problem with Evaluate Andibevan[_4_] Excel Programming 8 November 24th 05 04:00 PM
Evaluate formula using VBA Ali Baba Excel Discussion (Misc queries) 0 August 17th 05 12:31 AM
Evaluate error when using 2 crazybass2 Excel Programming 2 May 13th 05 03:40 PM


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