Solved

Problem with DO Wend Loop

Posted on 2013-12-17
1
127 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 45

Accepted Solution

by:
Martin Liss earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
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…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

757 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

20 Experts available now in Live!

Get 1:1 Help Now