Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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
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
Pivot Table With Text Values Tarig Excel Discussion (Misc queries) 0 May 5th 10 04:54 PM
a query for pivot table Arvind Excel Discussion (Misc queries) 1 January 25th 08 02:32 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Pivot Table Query sgriff Excel Discussion (Misc queries) 0 July 21st 06 08:08 AM
Pivot Table (vlookup 2 column text values, return 1 value) Al Excel Discussion (Misc queries) 1 November 30th 05 01:15 AM


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