[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Follow Up

Posted on 2015-02-04
13
Medium Priority
?
149 Views
Last Modified: 2016-02-11
Hi experts,

This is follow up question.
A   I have WB with buttons which download data from web and store in location which is mention in sheet Setting".
but many time I clicked on button it store to "D:\AmiBroker Data\Files\Temp". if there is Temp folder doesn't exist it will be created and store files.

B   Code format data after downloading but some time files are not come in the usual format so process stop that time and come up with error and have to stop the process. so again if I have to download from start date to previous date of corrupt file. I had tried to download for 8 years daily data but one file corrupt. have to start from very first year as in every button it delete past files. So there is any way to register those file names in column G and remain that file as it is and go ahead with next. so I will manually format that files.

Capture.PNG
See attached file.
Incoporated-Download-File-V17.xlsm
14032014.csv
18032014.csv
0
Comment
Question by:Naresh Patel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 31

Expert Comment

by:gowflow
ID: 40589760
Easy,

Instead of all this impossible complicated issues to keep track that is an total overkill !!!

We simply, like it was originally designed, each and every time it is about to delete files it will simply ask for your confirmation !

If you say No, then the files will be added to the directory if yes it delete the files in the directory !

how about that ?
gowflow
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40589797
and for the Temp directory sorry My mistake I forgot to remove the trace this is how I test your data !!!

Open your latest workbook goto VBA and doubleclick on Thisworkbook it should be like that:

Private Sub Workbook_Open()
'bTesting = True
Sheets("Main").Activate
End Sub

Open in new window



You should have btesting commented out (single quote in the beg and it being green !!!) or else you get the Temp unique directory and here goes the whole data getting deleted !

gowflow
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 40590738
As I noticed in every segment only 4 to 5 files is in wrong format out of 1000 files in each segment, which cause error. if we trace that files and named in column G it would be preferable. As after final files I need this files only for 2 min to upload in my software ...after this it is no use . so error files by pass and named in column G is best situation ...still if it is spagatti programing then chose what ever you like.

Thanks
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 8

Author Comment

by:Naresh Patel
ID: 40590862
Directory thing is solved.

Thanks
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40590970
Well can you give me a date for a wrong file so I try to upload to see what kind of error as cannot know just by saying error where it blocks !!!

Do you have errors in each and very button ? or some only ? which one ?
gowflow
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 40591031
Very first button NSE Delivery ....date is 14 March 2014.

I had tried this only for long duration.And yes NSE equity tried but excel closed automatic. I will run again and let you know. May I guess it is because of My laptop processor I.e. Atom processor .

Thanks
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40591047
Will try and let you know.
gowflow
0
 
LVL 31

Accepted Solution

by:
gowflow earned 2000 total points
ID: 40591070
don't know about the delay but I got an error that is not due to the file but a mis-handling in the routine that is fixed in this version.

Pls try it for date 14/03/2014 for button Delivery.
What I did is put 14/3/2014 in Start Day and 15/3/2014 in End date and after running it you can then put back in End Date =Today().

Let me know.
gowflow
Incoporated-Download-File-V19.xlsm
0
 
LVL 8

Author Closing Comment

by:Naresh Patel
ID: 40592047
If any problem I will post here ....as far as this question ......It is solved ....

Thank you very much Sir.
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40593155
Your welcome.
gowflow
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 40614197
Need your favor..... may I?
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40614268
yes pls shoot
gowflow
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 40614342
Here It Is.

Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question