Solved

Concatenate "

Posted on 1998-04-30
1
1,288 Views
Last Modified: 2008-03-10
Visual BASIC 5, VBA
How to concatenate string and retain double quotes inside
///
prestring = "A:" & a
rangestring = " Worksheets("Cheque").Range("" & prstring  &   "")"
Visual Basic is unhappy with this
I want to change range at a runtime
Here is result I want, I want to change number next to A:
Worksheets("Cheque").Range("A:6")
Any help appreciated
///

0
Comment
Question by:mativare
1 Comment
 
LVL 4

Accepted Solution

by:
zsi earned 50 total points
ID: 1435533
instead of using "", try using chr$(34)

zsi
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question