![]() |
activecell.address problem
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 |
activecell.address problem
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 |
activecell.address problem
"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 |
All times are GMT +1. The time now is 09:24 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com