Character7
New Member
- Joined
- Jul 15, 2017
- Messages
- 7
I have fooled around with several different import VBA scripts I have seen littering the internet. I patch a couple together to get my desired result and am now pulling out my hair. For the love of peanut butter, please tell me what the heck is wrong with this portion of my import code?
With IncomingData.QueryTables.Add(Connection:= _
"TEXT;" & fStr, Destination:=IncomingData.Range("$A$1"))
*** Note, IncomingData is the name of the inactive sheet, the button which is activating this script is on a sheet called Dwelling.
*** Note, fStr as you may know is a reference to a function that opens a dialogue to choose said CSV from file system.
I just need to know how to clean this up so that when button is pressed on sheet "Dwelling", that it copies the CSV into sheet "IncomingData" starting at grid A1.
With IncomingData.QueryTables.Add(Connection:= _
"TEXT;" & fStr, Destination:=IncomingData.Range("$A$1"))
*** Note, IncomingData is the name of the inactive sheet, the button which is activating this script is on a sheet called Dwelling.
*** Note, fStr as you may know is a reference to a function that opens a dialogue to choose said CSV from file system.
I just need to know how to clean this up so that when button is pressed on sheet "Dwelling", that it copies the CSV into sheet "IncomingData" starting at grid A1.