ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert text in cell using VBA (https://www.excelbanter.com/excel-programming/409840-insert-text-cell-using-vba.html)

JockW

Insert text in cell using VBA
 
Here's an easy one...
What code line can I add to a working macro which will add "some text" to
Sheet1 C2 when run?
--
tia

karma

Insert text in cell using VBA
 
On Apr 23, 4:50*pm, JockW wrote:
Here's an easy one...
What code line can I add to a working macro which will add "some text" to
Sheet1 C2 when run?
--
tia


Sub test()
Application.Worksheets("Sheet1").Range("C2") = "test"
End Sub

HTH

JockW

Insert text in cell using VBA
 
Thanks Karma
--
tia


"karma" wrote:

On Apr 23, 4:50 pm, JockW wrote:
Here's an easy one...
What code line can I add to a working macro which will add "some text" to
Sheet1 C2 when run?
--
tia


Sub test()
Application.Worksheets("Sheet1").Range("C2") = "test"
End Sub

HTH



All times are GMT +1. The time now is 03:37 PM.

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