Nitin Suntwal
New Member
Hi There,
I have attached a text file & my macro workbook. Let me take through the steps what I am doing on daily basis.
I get a text file size will be around 4 to 5 MB or sometimes less than that. I have around 270 columns & 70K rows.
1. I have to import text file which I have to separate with delimited char is "^" & the whole data should be in text format, which is done by recording macro.
2. Column G is amount ending with + or – I have macro for that.
3. Column H is date I have change it into MM/DD/YYYY format I have the macro for that.
The problem is I 70 columns for which I have to change the date format. Columns are fixed for date H,BA,BG,BH,BI,BJ,HA, & so on. The same goes with amount 30 columns.
I have loop to change the format of date & amount, however what I am doing is copy & paste the loop code & changing the columns from H to BA then BG like this 70 times I have copied to change the date & 30 times to change the amount columns. With that vba is giving error as procedure too large. Then I have broken the macro into 3 steps & call all those three with a button. It’s running but it’s slow.
Can someone help me with this issue?
Thanks in advance.
I have attached a text file & my macro workbook. Let me take through the steps what I am doing on daily basis.
I get a text file size will be around 4 to 5 MB or sometimes less than that. I have around 270 columns & 70K rows.
1. I have to import text file which I have to separate with delimited char is "^" & the whole data should be in text format, which is done by recording macro.
2. Column G is amount ending with + or – I have macro for that.
3. Column H is date I have change it into MM/DD/YYYY format I have the macro for that.
The problem is I 70 columns for which I have to change the date format. Columns are fixed for date H,BA,BG,BH,BI,BJ,HA, & so on. The same goes with amount 30 columns.
I have loop to change the format of date & amount, however what I am doing is copy & paste the loop code & changing the columns from H to BA then BG like this 70 times I have copied to change the date & 30 times to change the amount columns. With that vba is giving error as procedure too large. Then I have broken the macro into 3 steps & call all those three with a button. It’s running but it’s slow.
Can someone help me with this issue?
Thanks in advance.