Hi All,
I have the below script which produces output in different cells , I want to be able to save separate CSV files of the output generated.Kindly help. (File Attached)
Please Login or Register to view this content.
Hi All,
I have the below script which produces output in different cells , I want to be able to save separate CSV files of the output generated.Kindly help. (File Attached)
Please Login or Register to view this content.
Last edited by Leith Ross; 10-18-2018 at 06:22 PM. Reason: Added Code Tags
Hello aashishni ,
This macro will create CSV files based on the OS name and the limit for the IP addresses to be saved.
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Hi Leith,
Thanks a lot for your inputs, however I am getting a runtime error when I execute the macro, the error prompt being "RUN TIME ERROR '76'". and on debugging it takes to "Open File For Output As #1" in the code.
Please suggest.
I downloaded the file you attached and executed the same.
Thanks
Hi aashishni,
Have you seen Rule 8 in: https://www.excelforum.com/forum-rul...rum-rules.html
Please do follow it.
Best Regards,
Kaper
Hi Kaper,
thanks for pointing it out..sure will follow it !
Thanks
Hello aashishni ,
You need to change the variable Path from "C:\Test" to the folder where you want the files to be saved.
Hi Leith,
Ok..I got the error resolved by changing the path name however the output is not correct, it is putting the IP addresses in one row multiple cells whereas we need it in one cell separated by a comma.
Can you please check that ? And is it possible to get a prompt when the macro has completed the execution?
Thanks
Hello aashishni ,
Here is the amended macro. Change Path before you run the macro.
Please Login or Register to view this content.
It works now !!! Yay !!!
However, I used a data where I had multiple OS mentioned and then the CSV file for AIX did not populate correctly, had incorrect values (IP address) and multiple 00,00,00 entries.
Any suggestions ?
Apologies if I am bugging you too much but this is really helpful for me :-)
Hello aashishni,
Here is the updated macro and workbook. The macro let's you select the destination folder. I change it back it want.
Please Login or Register to view this content.
WOW !!!! That works wonderfully ! I owe you a lot !
Resolving the thread , will reach out to the forum again in case of any help required !
Hello aashishni,
Another satisfied customer! Glad I could help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks