JoeyLoving
Technical User
I need help. I have .txt files sent to me routinely and I am trying to write vba to rename columns, rows, add calculated columns, page breaks, etc.
So far, I have been able to do all that but I am having trouble with worksheetfunctions that need to reference relative cells.
here's what I am trying to do.
1. select subtotal cell
2. sumif(b1:b1000),=r-1c0,(d:d1000)
column b contains the name of the companies i am trying to total
basically, I am trying to subtotal each page
I think I am mixing vba and excel too freely but I can't seem to get this working.
Since I am always working with new files, totaling in excel won't help.
Any ideas?
So far, I have been able to do all that but I am having trouble with worksheetfunctions that need to reference relative cells.
here's what I am trying to do.
1. select subtotal cell
2. sumif(b1:b1000),=r-1c0,(d:d1000)
column b contains the name of the companies i am trying to total
basically, I am trying to subtotal each page
I think I am mixing vba and excel too freely but I can't seem to get this working.
Since I am always working with new files, totaling in excel won't help.
Any ideas?