LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Type Mismatch Error

Hi,

I have been working developing a VBA program which takes an inventory amount on
sheet 1, adds and subtracts to that number period transaction data found on
sheet2 and comes up with a Beginning Inventory Amount, Transaction Activity and
Ending Inventory Amount for accounts for a particular time period-sheet3. I
have learned much from books and this board and (so far have) gotten the
program to work....EXCEPT for the last account number in my test data.

My test data consists of 18 transactions for 4 accounts and beginning inventory
data for the accounts. The program uses a VLOOKUP function to determine the
starting inventory level for any account. I get a "Type Mismatch-Error 13"
message when the program is to calculate the beginning inventory level for the
last account. The program is to put any inventory amount it finds(via the
VLOOKUP function) in sheet1 (the beginning inventory level) onto sheet3 as the
first line of data for an account. It has worked for the other three accounts.
But the program stops for the last account. It puts a "N/A" in the cell which
should contain the beginning inventory level and no longer processes the last
account's transaction data, no matter how many transactions I instruct it to
look at. I get the error message and the "N/A." The data does not look any
different than the other data.

Can anyone tell me what might be causing this problem and what I can to do fix
it. Thanks in advance. May not be able to reply to the post because AOL's
newsreader is broken but I will read any reply on Google. (Was told about an
Outlook Express possible workaround to the AOL problem and will try that when
time permits.)

Thanks


 
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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Type Mismatch error Grant Excel Programming 6 September 1st 04 11:12 PM
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error rdavis7408 Excel Programming 1 August 25th 04 03:54 AM
Type Mismatch Error SRS Man[_2_] Excel Programming 3 April 16th 04 03:49 PM
Type mismatch error Stuart[_5_] Excel Programming 0 August 16th 03 05:20 PM


All times are GMT +1. The time now is 08:13 PM.

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"