ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   This code does not work (https://www.excelbanter.com/excel-programming/406576-code-does-not-work.html)

Patrick C. Simonds

This code does not work
 
Can anyone tell me why this code will not work. It is suppose to put the
value of TextBox1.Value and TextBox2.Value in one cell with a comma in
between.



ActiveSheet.range("44").Value = TextBox1.Value & ", " & TextBox2.Value


Gary Keramidas[_2_]

This code does not work
 
what is ActiveSheet.range("44")?

you need to specify a column foe the cell.

--

Gary


"Patrick C. Simonds" wrote in message
...
Can anyone tell me why this code will not work. It is suppose to put the
value of TextBox1.Value and TextBox2.Value in one cell with a comma in
between.



ActiveSheet.range("44").Value = TextBox1.Value & ", " & TextBox2.Value



Patrick C. Simonds

This code does not work
 
Sorry to waste everyone's time with that one. That 44 should have been A4.
Time to set this aside for the night.


"Gary Keramidas" wrote in message
...
what is ActiveSheet.range("44")?

you need to specify a column foe the cell.

--

Gary


"Patrick C. Simonds" wrote in message
...
Can anyone tell me why this code will not work. It is suppose to put the
value of TextBox1.Value and TextBox2.Value in one cell with a comma in
between.



ActiveSheet.range("44").Value = TextBox1.Value & ", " & TextBox2.Value





All times are GMT +1. The time now is 06:09 PM.

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