Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Excel/MS Query: remove apostophe from header text

Excel/MS Query: remove apostophe from header text

Excel/MS Query: remove apostophe from header text

Good day, I have used MSQuery to return data to an Excel worksheet. Unfortunately, the header text is placed between apostrophes, as in, 'First Name'.

While I understand, that this may due to the header text being comprised of 2 words, i.e., having a [space] in the header text, do you know of any way I can suppress this when results are returned from MSQuery?

Yes, I know that I can perform a replace/find on the worksheet to rid myself of the apostrophes, but I was hoping that there was some configuration that I could set to effect this change. Thank you - R.

RE: Excel/MS Query: remove apostophe from header text


I assume that this query is a recurring task.

If so, you ought to perform the query in a macro. I did this for all my production queries in Excel. In addition to the code for the query, you can also perform the Find ā€˜nā€™ Replace.

If you need help coding a solution, please start a thread in forum707: VBA Visual Basic for Applications (Microsoft).


glassesJust traded in my OLD subtlety...
for a NUance!tongue

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close