ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Please Help (https://www.excelbanter.com/excel-discussion-misc-queries/24896-please-help.html)

Greg B

Please Help
 
I am needing the code below to be changed so it also shows cell c1 aswell in
the same textbox.

TextBox1.Text = Worksheets("TEAM1").Range("B1").Value

Thanks in advance

Greg



Greg B

I need to have a gap between the values. How do I do this I have got this
code so far?
TextBox1.Text = Worksheets("TEAM1").Range("B1").Value &
Worksheets("TEAM1").Range("C1").Value

Thanks again

"Greg B" wrote in message
...
I am needing the code below to be changed so it also shows cell c1 aswell

in
the same textbox.

TextBox1.Text = Worksheets("TEAM1").Range("B1").Value

Thanks in advance

Greg





Peter Rooney

Just add
" " &
after your &

It could just as easily be a prefix or suffix, too e.g.
Range("A1").value= Range ("A2").formula & "This is some text" &
range("A3").formula

Cheers

Pete



"Greg B" wrote:

I need to have a gap between the values. How do I do this I have got this
code so far?
TextBox1.Text = Worksheets("TEAM1").Range("B1").Value &
Worksheets("TEAM1").Range("C1").Value

Thanks again

"Greg B" wrote in message
...
I am needing the code below to be changed so it also shows cell c1 aswell

in
the same textbox.

TextBox1.Text = Worksheets("TEAM1").Range("B1").Value

Thanks in advance

Greg







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

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