How to import Excel related BOM-list content into a excel sheet in Excel-VBA?

自作多情 提交于 2019-12-11 07:56:01

问题


How to implement a spreadsheet to do something more dynamic and recyclable for more user to use? By allowing the user to browse and import 2 excel related BOM-list files from the computer local drive into sheet 2/3 before i run the above code to find the differences?

Eg: Something like having two CommandButton's which can import all the excel BOM-list data information into sheet 2/3 without making any changes to the original? Before running any comparison test and a reset button for removeing all the content in sheet 2/3?

Sorry for my poor command of English and explanation if its not clear to you. Thanks for your time/help in advance. :)


回答1:


i still don't understand what you are looking for.

As far as i can read in your code, you are missing the workbook manipulation part.

You need to open the workbook you want to copy from with the open method as described here.

Then, you can manipulate the workbook and its content as you have done in your code and as described in this tutorial .



来源:https://stackoverflow.com/questions/6784915/how-to-import-excel-related-bom-list-content-into-a-excel-sheet-in-excel-vba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!