Dim objExcel As New Excel.Application
Dim exWb As Excel.Workbook
Dim bookTitle As String
Dim bookAutor As String
Dim myBooks As Collection
Set myBooks = New Collection
Set exWb = objExcel.Workbooks.Open("G:\MyFolder\BookShelf.xlsx")
Set excelWorkBook = objExcel.Workbooks.Open("G:\Dr Ahmad\Handover\QuickWord.xlsx")
' I need code in this region which could run some kind of Loop on excelWorkBook and give me a collection of book objects
' creating a book from all the records in Sheet1 of excelWorkBook such that the value in column 1 of each row will be the title of
' the book and the value in column 2 of each row will be the author of the book.
exWb.Close
Set exWb = Nothing
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.