Solved

Tax Accounting

Posted on 2012-12-27
3
241 Views
Last Modified: 2012-12-29
I had help in developing some code for my project. I am running into an error when I run it and I do not understand why. The error happens at this line...

If c.Offset(0, 5).Value = "NEW_ACCT" Then

which is on the 5th line of code on the attached file.

What the code is supposed to do is to check the East Trial Balance worksheet for any and all entries where NEW_ACCT exists in column F. Taking the Account Number, it is to add the new accounts to each Tax Basis BS worksheet (6) in descending order, copying the formula from column A into the new row as well as columns C thru N (Right now it is only designed to copy columns  C thru N.). The Column A formula change the account name to the one from the Trial Balance and if it does not exist, returns a 0. Then we take all rows with 0 in column A and delete them from all six Tax Basis BS (There is Tax Basis BS-SL, -West, -East, Other, -VIE and one just plain Tax Basis BS.

Any help I can get to resolve this error, and to add the feature to copy column a as well as making the whole thing work, will be greatly appreciated.
Pxx-20xx-2.zip
0
Comment
Question by:rawilken
  • 2
3 Comments
 
LVL 18

Expert Comment

by:Curt Lindstrom
ID: 38725597
The "Type Mismatch" error comes on line 610 when you read the #REF! error in cell F610. Correct the source of the the #REF! error to get past the "Type Mismatch" error.

All of the 3 "NEW_ACCOUNT" are entered in the array before this error happens.

Cheers,
Curt
0
 
LVL 18

Accepted Solution

by:
Curt Lindstrom earned 500 total points
ID: 38725620
To get rid of the #REF! errors you can just copy the formulas in the "East Trial Balance" worksheet on line 609 downwards.

Curt
0
 

Author Comment

by:rawilken
ID: 38729325
Duh!
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple Open Excel Spreadsheets 12 41
Excel Formula 16 45
Excel VBA Find Lowest Row number in any selection 8 25
Formula Help 3 22
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…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

777 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