Solved

Concatenate "

Posted on 1998-04-30
1
1,287 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 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