ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to refer to a text piece in a VBA custom function? (https://www.excelbanter.com/excel-discussion-misc-queries/174580-how-refer-text-piece-vba-custom-function.html)

FARAZ QURESHI

How to refer to a text piece in a VBA custom function?
 
I have created some custom functions but am confused how to refer to a piece
of text in the code e.g.:

...." & ABC.Address & "=A

How can I refer "A"? because two inverted commas wouldn't work as:

...." & ABC.Address & ""=A"

Thanx in Advance

Dave Peterson

How to refer to a text piece in a VBA custom function?
 
Maybe...

...." & ABC.Address & "=A"

But I don't really understand what you want.

FARAZ QURESHI wrote:

I have created some custom functions but am confused how to refer to a piece
of text in the code e.g.:

..." & ABC.Address & "=A

How can I refer "A"? because two inverted commas wouldn't work as:

..." & ABC.Address & ""=A"

Thanx in Advance


--

Dave Peterson

Bob Phillips

How to refer to a text piece in a VBA custom function?
 
Try

...." & ABC.Address & "=""A"""



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
I have created some custom functions but am confused how to refer to a
piece
of text in the code e.g.:

..." & ABC.Address & "=A

How can I refer "A"? because two inverted commas wouldn't work as:

..." & ABC.Address & ""=A"

Thanx in Advance





All times are GMT +1. The time now is 02:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com