Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default alpha character not populating in DBA table

Thanks for the comments Mr O. I will keep chipping away at this code.
--
TWN


"Tom Ogilvy" wrote:

If IsError(Item.Range("Q" & intCounter).Address) = True Then
will never be true. An address can not be an error detectable by IsError.
If you mean the value in the cell (such as #N/A) then

If IsError(Item.Range("Q" & intCounter).Value) = True Then

Also, Item doesn't seem to be the best choice as an object variable since so
many objects have items as properties - it could make your code harder to
read and understand (or maybe not <g).

--
Regards,
Tom Ogilvy

"Trebor" wrote:

I am trying to debug an existing Excel program that is not pulling data from
one specific column in multiple worksheets. All other columns are numeric
data and populate correctly when the VB macro in run.

The cell formula below converts a numeric indicator from a separate
worksheet, to either the alpha character 'C' or leaves the cell blank.

=IF(VLOOKUP(A11,Usage,'Inputs-Usage'!$FF$6,FALSE)<1,"C","")

The VB code in the macro module that provides the cell data to a .cvs file
is as follows;

''==== Per Steve, this should not be changed to Zero but should be null, or
real value, 09/13/2006
If IsError(Item.Range("Q" & intCounter).Address) = True Then
newVal = ""
Else
newVal = Item.Range("Q" & intCounter).Value
End If

Column 'Q' is the source for the alpha character to the .cvs file from which
the final report data is pulled.

The variable 'intCounter is as follows;

For intCounter = 9 To intNumberOfDayRows + 8

Can someone provide a possible solution to this problem.

Thank you
--
TWN

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i use sumproduct if my lookup table is alpha or alpha num? Angie Excel Worksheet Functions 1 January 23rd 10 03:07 AM
if alpha character samuel Excel Discussion (Misc queries) 4 December 17th 08 03:22 AM
All possible Alpha character combonations [email protected] Excel Programming 4 September 24th 06 04:22 PM
Numerical grade to Alpha character capecrusader Excel Discussion (Misc queries) 6 August 20th 05 02:02 PM
Increment Alpha Character Dan Excel Programming 4 June 3rd 04 07:32 PM


All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"