mystery_man
New Member
- Joined
- Mar 13, 2017
- Messages
- 1
So im writing Macros code that reads in different workbooks, prompts users to make a decision and saves a results files. The problem is that when Leading 0's are eliminated for numerical numbers with less than 8 digits. At the moment im reading in the files by:
I tried.OpenText but i kept on getting errors in trying to get it to work. (Im very new to VBA). Any help on this would be great thanks
Code:
Set VATWkbk = Workbooks.Open(varPath & pathSybol & "VAT.csv"
VATWkbk.Worksheets(1).USedRange.Copy Destination :=MAINWkbk.Worksheets("VAT").Range ("A1")
VATWkbk.Close SaveChanges:=False
I tried.OpenText but i kept on getting errors in trying to get it to work. (Im very new to VBA). Any help on this would be great thanks