Solved

Macro error - Cannot see mistake

Posted on 2016-08-19
2
35 Views
Last Modified: 2016-08-19
Hi Experts Using Excel 2013

Cannot see the error here...

Range("A2:A" & LastRow).Formula = "=IF(IFERROR(OFFSET(Data!DQ84,MATCH(B84,Data!$DP$2:$DP$2000,0),-82),"")=0,A2)),"""")"

Open in new window

0
Comment
Question by:route217
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Máté Farkas earned 500 total points
ID: 41762135
You always have to use double quotes in code:
Range("A2:A" & LastRow).Formula = "=IF(IFERROR(OFFSET(Data!DQ84,MATCH(B84,Data!$DP$2:$DP$2000,0),-82),"""")=0,A2, """")"

Open in new window

0
 

Author Comment

by:route217
ID: 41762138
thanks for the feedback
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question