![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
This is my first day at trying to write VBA macros, so sorry for the newbie question.
Lets say I have a string, Dim text As String and cell A1 happens to have the number 123 in it. How do I read that cell in the middle of the string so it reads for example "thenumber123isinthecell"? Thanks in advance. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Try:
text = "thenumber" & cells(1,1).value & "isinthecell"
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
|
G'day,
I'm new to vba also, but do you mean something like (?): Text = "Thenumber" & Sheets("Sheet1").Range("A1").Value & "isinthecell" Adam |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|