?
Solved

Problem with DO Wend Loop

Posted on 2013-12-17
1
Medium Priority
?
135 Views
Last Modified: 2013-12-19
Hi Guys, can you tell me why my code is populating the cells (i,18) & Cells(i,20) with "VALUE#"? I enclose my attachment:


ElseIf Cells(i, 6).Value = "ANCOVBONDM" Then
Cells(i, 18).Value = "-832191"
Cells(i, 20).Value = "0.00"
Cells(i, 23).Value = "0.00"
DummyRec9.xlsm
0
Comment
Question by:Justincut
1 Comment
 
LVL 50

Accepted Solution

by:
Martin Liss earned 2000 total points
ID: 39725312
The columns that are "VALUE#" are S and U which in Cells() is 19 and 21, not 18 and 20, so the code you show doesn't apply (at least not how it is written).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

809 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