Assigning a formula to a Cell

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

I have been trying to assign a formula to a cell and have
been getting an application-defined or object defined
error:

Sub Try()
Range("J7").Formula = "=GetPivotData('LMV%',$B$6,'Sector
Index',$B$7)"
End Sub

I would appreciate any thoughts anyone has on this.

Thanks.

Matt
 

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