Solved

Macro error - Cannot see mistake

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now