Hi!
Here is my dilemma: I have an old set of VBA functions which I wrote that process a vendor pricing sheet from their config tool. I'm tired of manually entering in AutoSUMs at the bottom of each category (usually 4 but sometimes only 2 or 3) and then manually linking them to a summary at the top. Each of the up to four categories can have a variable number of lines, so the locations of the desired SUM cells also varies.
I've found the proper place in the VBA funtion to add the code, but I can't figure out how to set the Ranges. If I try to use a variable to grab the top range for the SUM function, then I get a 'range' of object'_global' error. If I try to calculate it based on a Count variable used for the line by line processing, then I get an 'Application-defined or object-defined' error.
This is probably stupid simple, but I can't seem to view it properly...
[Uh, obviously I'm new here - how do you get that inside window with the code in it? I'll just attach a text file sample (reduced significantly, removing most of the existing code that processes each product line)...]
Thanks!
Bookmarks