Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm using Office XP, I'm having a problem referencing the address of the activecell. Here is a snip of my code insertFormula(intcount, ActiveCell.Address(False, False, xlA1) which is passed to Function insertFormula(intcount As Integer, ByVal Target As Range) As String I keep getting a 'Type Mismatch' error that highlites .Address. Help is much appreciated. Jason |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That is because you are passing a string variable into a range - Type
mismatch. Pass the cell itself insertFormula(intcount, ActiveCell) -- HTH RP (remove nothere from the email address if mailing direct) "Jason" wrote in message ... Hi, I'm using Office XP, I'm having a problem referencing the address of the activecell. Here is a snip of my code insertFormula(intcount, ActiveCell.Address(False, False, xlA1) which is passed to Function insertFormula(intcount As Integer, ByVal Target As Range) As String I keep getting a 'Type Mismatch' error that highlites .Address. Help is much appreciated. Jason |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Jason" wrote in message ... Hi, I'm using Office XP, I'm having a problem referencing the address of the activecell. Here is a snip of my code insertFormula(intcount, ActiveCell.Address(False, False, xlA1) which is passed to Function insertFormula(intcount As Integer, ByVal Target As Range) As String I keep getting a 'Type Mismatch' error that highlites .Address. Help is much appreciated. Jason Use ActiveCell rather than ActiveCell.Address /Fredrik |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Activecell problem | Excel Discussion (Misc queries) | |||
identify the name of the activecell not its address | Excel Programming | |||
Using Activecell.Address when defining name | Excel Programming | |||
Activecell address | Excel Programming | |||
ActiveCell.Address | Excel Programming |