I need some assistance on setting up a macro to accomplish some tasks on a select range of cells that will vary from data source. I am a record and try to tweak macro user with almost no VBA knowledge.
I need to import a txt or csv file into a worksheet and have the macro take care of functions such as formatting, text to columns, delete rows, etc. There are 3 basic ranges of data. The first few rows are header info such as name, account number, etc. The second range are charge records several columns wide. At the end of the data, there are a few rows of total information such as sales tax, total, prior balance, etc. Each of the 3 ranges are different and need to be treated separately when formatting and breaking out columns.
I can do the first set of data because it is always in the same place. I just don't know the beginning and ending points on the other 2 sets of data because they will always be in differnet places.
In the past, I have come accross similar problems that I handle some of the steps manually but this macro will be used by many others and I need it to work without much explanation or it defeats the purpose.
This is a very shortened example of the type of data I am working with.
1 2 3 4 5
A Customer Name
B Address
C City, State, Zip
D Account Number
E Billing Period xx/xx/xx
F - Blank -
G Serial # Type Category Cost
H Serial # Type Category Cost
I Serial # Type Category Cost
J Serial # Type Category Cost
K Serial # Type Category Cost
L New Charges
M Prior Balance
N Payments
O Total Due
Thank you for any assistance you can provide.
I need to import a txt or csv file into a worksheet and have the macro take care of functions such as formatting, text to columns, delete rows, etc. There are 3 basic ranges of data. The first few rows are header info such as name, account number, etc. The second range are charge records several columns wide. At the end of the data, there are a few rows of total information such as sales tax, total, prior balance, etc. Each of the 3 ranges are different and need to be treated separately when formatting and breaking out columns.
I can do the first set of data because it is always in the same place. I just don't know the beginning and ending points on the other 2 sets of data because they will always be in differnet places.
In the past, I have come accross similar problems that I handle some of the steps manually but this macro will be used by many others and I need it to work without much explanation or it defeats the purpose.
This is a very shortened example of the type of data I am working with.
1 2 3 4 5
A Customer Name
B Address
C City, State, Zip
D Account Number
E Billing Period xx/xx/xx
F - Blank -
G Serial # Type Category Cost
H Serial # Type Category Cost
I Serial # Type Category Cost
J Serial # Type Category Cost
K Serial # Type Category Cost
L New Charges
M Prior Balance
N Payments
O Total Due
Thank you for any assistance you can provide.