ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Passing values to a string (https://www.excelbanter.com/excel-programming/415374-passing-values-string.html)

Risky Dave

Passing values to a string
 
Hi,

I have a unique identifier in the format:

ABC-R-<number

Where only <number changes .

As part of a search capability, the user is able to enter the specific value
of <number that they are looking for - this is in an adjacet cell to the
ABC-R- text.

What I want to do is concatenate ABC-R- and the user-defined <number then
pass it to a String which I can then use to search the data arrays. What is
the format for this, or can't I do it?

If not, any suggestions on how I can pass a user-defined value to a variable?

TIA

Dave

Mike H

Passing values to a string
 
Maybe

mystring = Range("A1").Value & Range("B1").Value

Mike

"Risky Dave" wrote:

Hi,

I have a unique identifier in the format:

ABC-R-<number

Where only <number changes .

As part of a search capability, the user is able to enter the specific value
of <number that they are looking for - this is in an adjacet cell to the
ABC-R- text.

What I want to do is concatenate ABC-R- and the user-defined <number then
pass it to a String which I can then use to search the data arrays. What is
the format for this, or can't I do it?

If not, any suggestions on how I can pass a user-defined value to a variable?

TIA

Dave


Risky Dave

Passing values to a string - PLEASE IGNORE
 
I've worked it out, thankx

"Risky Dave" wrote:

Hi,

I have a unique identifier in the format:

ABC-R-<number

Where only <number changes .

As part of a search capability, the user is able to enter the specific value
of <number that they are looking for - this is in an adjacet cell to the
ABC-R- text.

What I want to do is concatenate ABC-R- and the user-defined <number then
pass it to a String which I can then use to search the data arrays. What is
the format for this, or can't I do it?

If not, any suggestions on how I can pass a user-defined value to a variable?

TIA

Dave



All times are GMT +1. The time now is 01:52 PM.

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