ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Select Using Range (https://www.excelbanter.com/excel-discussion-misc-queries/53332-select-using-range.html)

vijaya

Select Using Range
 
How do I select multiple cells of a particular column using macros and Range.

I dont want to use ctrl key and select as I have many cells of one
particular column to be selected(something like 1000)

I wanted to copy a formula into these selected cells, once i select the
required cells

Thanks
Vijaya

Don Guillett

Select Using Range
 
here's an idea I use in a checkbook
Sub balance()
[Set frng = Range("h8:h" & Range("a65536").End(xlUp).Row)
With frng
.Formula = "=h7+d8"
' .Formula = .Value 'uncomment to leave ONLY the value
End With
End Sub

--
Don Guillett
SalesAid Software

"vijaya" wrote in message
...
How do I select multiple cells of a particular column using macros and

Range.

I dont want to use ctrl key and select as I have many cells of one
particular column to be selected(something like 1000)

I wanted to copy a formula into these selected cells, once i select the
required cells

Thanks
Vijaya





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

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