Solved

Concatenate "

Posted on 1998-04-30
1
1,285 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
Comment Utility
instead of using "", try using chr$(34)

zsi
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now