View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Filo Filo is offline
external usenet poster
 
Posts: 54
Default VBA and Pivot Table Query for Text values

I think I am having a problem with my code because if the value in a cell is
text instead of numeric, the symbol ' needs to be added to the code. In the
code below, where would I put the ' to switch the variable deptNUM from
numeric to text?

& "WHERE (AC_CLAIM.GL_BUS_UNIT_A_NBR=" & deptNUM & ")")

Thanks