problem using formula in VBA macro Excel 2010

deekar

New Member
Joined
Oct 15, 2013
Messages
12
I am trying piece together various code to create a macro.
I am having a problem with one line of code.
The error is that object does not support this property or method

Where am I going wrong.


Range(Cells(2, Found.Column + 1), Cells(LR, Found.Column + 1)).ActiveCell.FormulaR1C1 = "=IfError(Mid(H2, Find(""(ID:"", H2) + 4, 10), "")"

Thank you.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Also, look at the end of your IFERROR. I think to return a blank, you want """" rather than simply "".
 
Upvote 0
I am trying piece together various code to create a macro.
I am having a problem with one line of code.
The error is that object does not support this property or method

Where am I going wrong.


Range(Cells(2, Found.Column + 1), Cells(LR, Found.Column + 1)).ActiveCell.FormulaR1C1 = "=IfError(Mid(H2, Find(""(ID:"", H2) + 4, 10), "")"

Thank you.

Try

Range(Cells(2, Found.Column + 1), Cells(LR, Found.Column + 1)).Formula = "=IfError(Mid(H2, Find(""(ID:"", H2) + 4, 10), """")"

M.
 
Upvote 0
Dear All,

I need help in <acronym title="visual basic for applications">VBA</acronym> Code after Selection.End(xlDown).Select i need going on next down cell,

kindly help me.

Thanks
 
Upvote 0
Dear All,

I need help in <ACRONYM title="visual basic for applications">VBA</ACRONYM> Code after Selection.End(xlDown).Select i need going on next down cell,

kindly help me.

Thanks

This is not related with the original question.

To improve your chances of get help, please, create your own Thread.

M.
 
Upvote 0
Dear Marcelo Branco,

how i make a new thread i have no idea,

Sorry for disturbance.

Frz
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top