Avatar of AFGPHXExcel
AFGPHXExcel

asked on 

How do I use a comma in a string?

I want to set my string variable, v_WksNamesStr, equal to the value of "Requirements", The code looks like this:

v_WksNamesStr = ""RequirementSummary","

Its looking for more after the comma.
Microsoft Excel

Avatar of undefined
Last Comment
Saqib Husain
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Try:

v_WksNamesStr = "RequirementSummary"

Open in new window

It looks like you had too many doublequotes and a superfluous comma
Avatar of jppinto
jppinto
Flag of Portugal image

Not sure if the comma is part of the string but if it is, then you have to do like this:

v_WksNamesStr = "RequirementSummary,"
ASKER CERTIFIED SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of gplana
gplana
Flag of Spain image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Hi, did you notice that that was exactly what I proposed?

Saqib
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Thanks ModCorlEEone
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo