D
DJ MC
Hi,
ive been struggling over the last week to complete a task in VBA excel
and wondering if anyone out there can help!
I Have a window where the user selects a .GFF file, the location is
pasted into a text box and made into a variable, once the start button
it clicked, the .GFF file needs to be opened in notepad, this is where
the problems start. I've tried
Shell(Notepad.exe GFF_Location,1)
GFF_Location being the variable with the file location but this doesnt
work as it tries to open notepad and finds a file called GFF_Location
and when not found asks if i would like to create it?
After this file can be opened in notepad data needs to be read and
pasted into cells in a new excel worksheet. this is what it looks like
in the GFF file.
LIN1 000001
NAD2A
BV
NAD2B SULOJMANI R A MR
ATT2 11 PX274500A
ATT2 19 0950009
DTM2 182 20060430 102
DTM2 7 20060518 102
DTM2 166 2007 602
ALC1 4 466L
And this is what it needs to look like in excel
A B C
D
1 LIN1 NAD2A NAD2B ATT2 11
2 000001 BV SULOJMANI PX274500A
ect..ect,..
Any help would be much appreciated as im pulling my hair out lol.
ive been struggling over the last week to complete a task in VBA excel
and wondering if anyone out there can help!
I Have a window where the user selects a .GFF file, the location is
pasted into a text box and made into a variable, once the start button
it clicked, the .GFF file needs to be opened in notepad, this is where
the problems start. I've tried
Shell(Notepad.exe GFF_Location,1)
GFF_Location being the variable with the file location but this doesnt
work as it tries to open notepad and finds a file called GFF_Location
and when not found asks if i would like to create it?
After this file can be opened in notepad data needs to be read and
pasted into cells in a new excel worksheet. this is what it looks like
in the GFF file.
LIN1 000001
NAD2A
BV
NAD2B SULOJMANI R A MR
ATT2 11 PX274500A
ATT2 19 0950009
DTM2 182 20060430 102
DTM2 7 20060518 102
DTM2 166 2007 602
ALC1 4 466L
And this is what it needs to look like in excel
A B C
D
1 LIN1 NAD2A NAD2B ATT2 11
2 000001 BV SULOJMANI PX274500A
ect..ect,..
Any help would be much appreciated as im pulling my hair out lol.