Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Export data from Excel to access using VB script
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I need to export Excel data to access using Vb script. I need to export specific columns from the Excel sheet. Can someone provide me the code for the same.

Thanks
Sheela
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Wouldn't it be easier to import from Access? It already has this functionality.

Code wise, that is a lot of code for someone to provide you with.

Try

1. Open recordset to excel shee (internet should have examples)
2. Open Access DB connection (again internet examples)
3. Loop through Excel recordset and create SQL statement to insert into Access DB


Again, I would think it would be easier to do with Access, but I can understand that sometimes you need a coded method. GL.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  export UFT datasheet to excel and then append Mozza 0 1,634 09-04-2018, 08:58 AM
Last Post: Mozza
  How to Access MS Excel Controls using QTP gayuamlu 0 2,042 06-13-2015, 02:06 AM
Last Post: gayuamlu
  Search and import data from excel under some rules. nwpulele 2 2,744 02-19-2015, 04:10 AM
Last Post: supputuri
  Excel and Driver Script shipu 1 3,575 02-27-2014, 09:09 AM
Last Post: supputuri
Question QTP Script for enter data to DB geethu105 2 3,139 02-24-2014, 06:54 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)