Thread
:
how do i set an entire row or column to a range?
View Single Post
#
7
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
how do i set an entire row or column to a range?
try
Sub setcol()
Set wsrng = Columns(1)
wsrng.Select
End Sub
--
Don Guillett
SalesAid Software
"strataguru" wrote in message
...
what if i only know of the column number (or row number) based on an int
value in a field called colNum?
for example - if in my code the logic determines that the range needs
to be 3 (meaning colNum = 3)
i'm getting an error "Method 'Range' of object '_Global' failed." with
the statement:
Set rngWs = Range(colNum).EntireColumn
Thanks!
---
Message posted from
http://www.ExcelForum.com/
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]