range with dim select

  • Thread starter Thread starter ianripping
  • Start date Start date
I

ianripping

I have a number generated by a Dim named regtype

I want to define a range like:

rang(b:regtype) using vba

how do i do this?

i tried :-

range.address(regtype , b).select

but didnt work

any suggestions
 
Hi
not quite sure but try
cells(regtype,"B").select

if regtype is a number representing your desired row and you want to
select the cell in column 'B'
 
thanks frank that great, how would i select regtpye row, from column
to m
 
Hi
try something like
Range(cells(regtype,"B"),cells(regtype,"M"))

or
Range("B" & regtype & ":M" & regtype)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top