ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Assignning a value to a range (https://www.excelbanter.com/excel-programming/294554-assignning-value-range.html)

ben

Assignning a value to a range
 
How to I assign a single value to a specif selected range in code some thing like this but this wont work

Worksheets("Sheetname").Range("19R:21C").value = "

Thankyou in advance for you help.

Frank Kabel

Assignning a value to a range
 
Hi
try
Worksheets("Sheetname").Range("U19").value = ""

or
Worksheets("Sheetname").cells(19,21).value = ""

--
Regards
Frank Kabel
Frankfurt, Germany

"BEn" schrieb im Newsbeitrag
...
How to I assign a single value to a specif selected range in code

some thing like this but this wont work?

Worksheets("Sheetname").Range("19R:21C").value = ""

Thankyou in advance for you help.



JE McGimpsey

Assignning a value to a range
 
One way:

Sheets("Sheetname").Cells(19, 21).ClearContents


In article ,
BEn wrote:

How to I assign a single value to a specif selected range in code some thing
like this but this wont work?

Worksheets("Sheetname").Range("19R:21C").value = ""

Thankyou in advance for you help.



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

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