bsharath
asked on
Visio Script that can check excel row data and create a Flow chart with the data and save each row data into seperate IE files (Html)
Hi,
Visio Script that can check excel row data and create a Flow chart with the data and save each row data into seperate IE files (Html)
in each excel in from row 3 i have say 40 + Colums of data.
I have this for 2000+ Rows.
i want each row data to be brought as an Flow chart as this.
Row1 Header Row1 Header Row1 Header Row1 Header Row1 Header
Row3 data Colum A - Row3 data Colum B - Row3 data Colum C - Row3 data Colum D - Row3 data Colum E - | | | | |
Row3 data Colum K- Row3 data Colum H - Row3 data Colum L - Row3 data Colum R - Row3 data Colum s -
I really dont know if this can be done. If possible then few more questions with follow (new Posts)
I should be able to change the colum No as wanted.
Regards
Sharath
Visio Script that can check excel row data and create a Flow chart with the data and save each row data into seperate IE files (Html)
in each excel in from row 3 i have say 40 + Colums of data.
I have this for 2000+ Rows.
i want each row data to be brought as an Flow chart as this.
Row1 Header Row1 Header Row1 Header Row1 Header Row1 Header
Row3 data Colum A - Row3 data Colum B - Row3 data Colum C - Row3 data Colum D - Row3 data Colum E - | | | | |
Row3 data Colum K- Row3 data Colum H - Row3 data Colum L - Row3 data Colum R - Row3 data Colum s -
I really dont know if this can be done. If possible then few more questions with follow (new Posts)
I should be able to change the colum No as wanted.
Regards
Sharath
ASKER
Hi Scott...
1) No i guess
Attached are 2 files. 1 xls file that has all the headers and 1 row of data. Another file is vsd.
2) yes for each row i want a html file created as each row has 1 employers details.
3) In the attachment you would know...
I know that this is going to be a real pain and not sure if this is possible too.
I have created the flow of 70% data in the row. But will need to do it for the rest too.. Please dont take my diagram as the suggestion.Please addin your views that would be more useful and clear...
THX
Excel-to-Visio-Chart-to-Html.vsd.zip
1) No i guess
Attached are 2 files. 1 xls file that has all the headers and 1 row of data. Another file is vsd.
2) yes for each row i want a html file created as each row has 1 employers details.
3) In the attachment you would know...
I know that this is going to be a real pain and not sure if this is possible too.
I have created the flow of 70% data in the row. But will need to do it for the rest too.. Please dont take my diagram as the suggestion.Please addin your views that would be more useful and clear...
THX
Excel-to-Visio-Chart-to-Html.vsd.zip
While it may be possible to mathematically lay out a bunch of shapes to create your chart, I don't think it's practical, primarily because it will never look like what you want.
I think that the better alternative is for you to create the master flowchart, arranged exactly the way you'd like it to look, then save that as a Visio template. With that starting point, it is possible to write a macro that creates a Visio page and an HTML page from each row of data.
Let me know if this makes sense. If so, I can tell you what you'll need to do first, then what we can do in a macro.
Re #3 above, I still don't understand what you're referring to about changing column numbers.
I think that the better alternative is for you to create the master flowchart, arranged exactly the way you'd like it to look, then save that as a Visio template. With that starting point, it is possible to write a macro that creates a Visio page and an HTML page from each row of data.
Let me know if this makes sense. If so, I can tell you what you'll need to do first, then what we can do in a macro.
Re #3 above, I still don't understand what you're referring to about changing column numbers.
ASKER
Yes Scott that would be fine... Any possible way to achieve it the easiest would be fine...
What i menat by changing colums is. If the macro is going to be based on Excel colums then thought to have a easy way of chaning the colum no. Anyways i think now we will not require that...
What i menat by changing colums is. If the macro is going to be based on Excel colums then thought to have a easy way of chaning the colum no. Anyways i think now we will not require that...
ASKER
Yes Scott that would be fine... Any possible way to achieve it the easiest would be fine...
What i menat by changing colums is. If the macro is going to be based on Excel colums then thought to have a easy way of chaning the colum no. Anyways i think now we will not require that...
What i menat by changing colums is. If the macro is going to be based on Excel colums then thought to have a easy way of chaning the colum no. Anyways i think now we will not require that...
OK, here's the plan then; let me know if this makes sense:
I will write a macro that will create pairs of boxes with an arrow between them. The top box will contain the text of a cell in row one of the spreadsheet; the bottom box will be blank (but will have an internal Visio name equal to the row one text label so we an match it to the data later).
You will arrange the pairs of boxes into the flowchart style that you want; this will be the template that will be used to display all employee records.
I will write a macro that will create an employee "flowchart" in Visio. It will read a data row from Excel, create a page based on the template, then place the employee data into the appropriate boxes. Finally, it will use Visio's "Save as web page" function to create a set of web pages after all employee pages have been created. Note: the macro will not have any selection capability -- it will produce a page for every employee record in Excel. If you want to create pages for a subset of employees, you'll need to create a different spreadsheet.
All of this will take a while but I'll try to get the first macro created in the next week or so.
I will write a macro that will create pairs of boxes with an arrow between them. The top box will contain the text of a cell in row one of the spreadsheet; the bottom box will be blank (but will have an internal Visio name equal to the row one text label so we an match it to the data later).
You will arrange the pairs of boxes into the flowchart style that you want; this will be the template that will be used to display all employee records.
I will write a macro that will create an employee "flowchart" in Visio. It will read a data row from Excel, create a page based on the template, then place the employee data into the appropriate boxes. Finally, it will use Visio's "Save as web page" function to create a set of web pages after all employee pages have been created. Note: the macro will not have any selection capability -- it will produce a page for every employee record in Excel. If you want to create pages for a subset of employees, you'll need to create a different spreadsheet.
All of this will take a while but I'll try to get the first macro created in the next week or so.
ASKER
Scott thanks a lot...
This feels great an impossible though of mine is coming on a shape now...
Thanks U...
This feels great an impossible though of mine is coming on a shape now...
Thanks U...
ASKER
Scott thanks a lot...
This feels great an impossible though of mine is coming on a shape now...
Thanks U...
This feels great an impossible though of mine is coming on a shape now...
Thanks U...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What is the file extension?
ASKER
What is the file extension?
ASKER
Got it... Thanks...
I have all the Headers with arrows and another box empty. Now should i arrange the boxes as i need?
I have all the Headers with arrows and another box empty. Now should i arrange the boxes as i need?
ASKER
Got it... Thanks...
I have all the Headers with arrows and another box empty. Now should i arrange the boxes as i need?
I have all the Headers with arrows and another box empty. Now should i arrange the boxes as i need?
Sorry about the file extension -- I didn't notice that the EE upload process truncated the filename.
You can arrange the boxes if you like the font sizes, line weights, etc. However, if you want anything changed, it would be easier to do it now before you arrange the shapes on the page.
You can arrange the boxes if you like the font sizes, line weights, etc. However, if you want anything changed, it would be easier to do it now before you arrange the shapes on the page.
ASKER
All are fine Scott. Is the next task to arrange?
ASKER
All are fine Scott. Is the next task to arrange?
ASKER
One question when arranging some colums i would not want them. So can i delete them while arranging?
ASKER
One question when arranging some colums i would not want them. So can i delete them while arranging?
Yes to both questions -- you can arrange the shapes any way that you'd llike, and you are free to delete any that you don't need.
If you don't mind, why don't you close this question, assuming the macro creates the shapes you need, then open a related question about filling the data into the template you create.
If you don't mind, why don't you close this question, assuming the macro creates the shapes you need, then open a related question about filling the data into the template you create.
ASKER
Thanks a lot for all the help Scott... I have posted another Q ...
Should i do all the visio graph and post it here or will the script do it any ways in pulling the data if the headers match?
Should i do all the visio graph and post it here or will the script do it any ways in pulling the data if the headers match?
1) Is this request similar to what we did in this question:
https://www.experts-exchange.com/questions/23483233/How-do-I-populate-fields-in-a-visio-diagram-from-an-Excel-worksheet.html
If not, can you provide a mockup of both the input spreadsheet and the layout of the flowchart for one row of data? That would help a lot I think. You don't have to fill in every value or put every box on the flowchart -- just enough so I can see exactly what you have in mind.
2) When you say that you want a separate html file for each row, do you mean you want 2000 html pages, each of which contains one of the created flow charts? If so, do you want them as 2000 independent pages or as a set of 2000 pages in one "web site"?
3) I'm not clear what you mean about changing the column number... can you explain in more detail?