excel - Application defined or object defined error in VBA in passing parameter to a function -


I am trying to pass a worksheet variable as its parameter to the function here is a code

Can someone tell me why I am wrong here ...

  ah = sheets ("wrk");  . / P> 
  ah = wrk.Cells (b, varcol - 1)    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -