Solved

Macro error - Cannot see mistake

Posted on 2016-08-19
2
36 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

622 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