Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default cell value syntax

Im getting a type mismatch on the "evaluate" line code. can someone
help?

dim Col_value as string
dim l_lastrow as long

l_lastrow = 50
Col_value = "B"
b1:b50

Col_value 1: Col_value l_lastrow
l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value &
l_lastrow, S_in)")

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default cell value syntax

l_ans = ActiveSheet.Evaluate(" COUNTIF(" & Col_value & "1:" & Col_value &
l_lastrow & ", S_in)")

Not sure what S_in is but I am assuming a named range.
--
HTH...

Jim Thomlinson


"miek" wrote:

Im getting a type mismatch on the "evaluate" line code. can someone
help?

dim Col_value as string
dim l_lastrow as long

l_lastrow = 50
Col_value = "B"
b1:b50

Col_value 1: Col_value l_lastrow
l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value &
l_lastrow, S_in)")

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default cell value syntax

S-in is a var
Thanks for your help, that did the trick

"Jim Thomlinson" wrote:

l_ans = ActiveSheet.Evaluate(" COUNTIF(" & Col_value & "1:" & Col_value &
l_lastrow & ", S_in)")

Not sure what S_in is but I am assuming a named range.
--
HTH...

Jim Thomlinson


"miek" wrote:

Im getting a type mismatch on the "evaluate" line code. can someone
help?

dim Col_value as string
dim l_lastrow as long

l_lastrow = 50
Col_value = "B"
b1:b50

Col_value 1: Col_value l_lastrow
l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value &
l_lastrow, S_in)")

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
VBA syntax - trying to input a vlookup into a cell Ron Excel Discussion (Misc queries) 1 May 14th 09 11:04 PM
cell reference syntax Fred Excel Worksheet Functions 2 December 16th 08 04:01 PM
Worksheet().Range(Cell(), Cell()) syntax? Ouka[_6_] Excel Programming 10 July 27th 05 12:50 AM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
Syntax using variable in cell Formula Mike Fogleman Excel Programming 2 January 28th 04 12:47 AM


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