Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I am trying to name the variable name1 by an offset of range a1 by a1 rows and 1 column. But the following codes not working can anyone help me? TIa Sub TestName() drp = Range("A1") name1 = Worksheets("control").Range(drp).Offset(drp, 1) MsgBox (name) End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So if A1 = 1
and B2 = hello world then it should display hello world Sub TestName() With Worksheets("control").Range("A1") MsgBox .Offset(.Value, 1) End With End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "Edgar" wrote in message ... Hi I am trying to name the variable name1 by an offset of range a1 by a1 rows and 1 column. But the following codes not working can anyone help me? TIa Sub TestName() drp = Range("A1") name1 = Worksheets("control").Range(drp).Offset(drp, 1) MsgBox (name) End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CSE Formula Prob | Excel Worksheet Functions | |||
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul | Excel Worksheet Functions | |||
vlookup prob with all #n/a's | Excel Discussion (Misc queries) | |||
Macro Prob | Excel Worksheet Functions | |||
Still have formula prob :o( | Excel Programming |