After trying your macro, I was sadly unable to get it to work for me. Sorry that I keep making things more confusing haha. Heres the Vba code I have so far
Sub Computer1()
'Messagebox
Call MsgBox("Note: Please select data inputs from Ethovision for each computer receptively. All data will be displayed on Sheet2", vbOKOnly, "Welcome")
Dim SaveDriveDir As String, MyPath As String
Dim FName As Variant
SaveDriveDir = CurDir
MyPath = Application.DefaultFilePath 'or use "C:\Data"
ChDrive MyPath
ChDir MyPath
FName = Application.GetOpenFilename(filefilter:="Excel Files, *.xl*")
If FName = False Then
'do nothing
Else
'1st Genotype
GetData FName, "Analysis", "A5:K14", Sheets("Sheet2").Range("A97"), False, False
'2nd Genotype
GetData FName, "Analysis", "A15:K24", Sheets("Sheet2").Range("M97"), False, False
'3rd Genotype
GetData FName, "Analysis", "A25:K34", Sheets("Sheet2").Range("Y97"), False, False
'1st Genotype
GetData FName, "Analysis", "A35:K44", Sheets("Sheet2").Range("A107"), False, False
'2nd Genotype
GetData FName, "Analysis", "A45:K54", Sheets("Sheet2").Range("M107"), False, False
'3rd Genotype
GetData FName, "Analysis", "A55:K64", Sheets("Sheet2").Range("Y107"), False, False
'this will go on etc, etc...
I didn't finish it, but this continues on. I was hoping that there was a more efficient way to write this as I may have to work with more genotypes so I would have to rewrite the code each time that happens. Thank you so much thus far Alf I really appreciate all your help on this.
Bookmarks