Re: Mid function compile error
- From: "Tim Zych" <tzych@nospam at earthlink dot net>
- Date: Fri, 19 Jun 2009 10:50:25 -0700
That is usually a reference problem. Go to Tools -> References on the
compile error machines and identify any MISSING references. They need to be
unchecked on the dev machine, assuming they are not needed.
--
Regards,
Tim Zych
http://www.higherdata.com
Workbook Compare - Excel data comparison utility
"ojv" <ojv@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C2A6B14B-C807-4B6D-A6C1-BB9692B607CE@xxxxxxxxxxxxxxxx
I have an add-in which works well on my machine.
Running it on another machine I get a compile error with the Mid function
highlighted. Are thee a simple explanation for this?
Sub GetSTGfilesFromProjectFile()
Dim firstLine As Boolean, firstSmp As Boolean, firstPlot As Boolean
Dim fileFilter As String, Title As String, fullFileName As String, file As
String, root As String
Dim saveStatusbar As String, stgFile As String, sheetName As String,
errMsg
As String
Dim pos As Integer, fileNumber As Integer, oldSheetsInNewWorkbook As
Integer, i As Integer, posSlash As Integer, posDot As Integer
Dim data, radialP(), words(), stgFiles(), shearingFiles(),
consolidationFiles(), projectInfo(), poreWater()
Dim wb As Workbook
Dim ws As Work***
Dim rng As Range, rng2 As Range
fileFilter = "stg files (*.prj),*.prj," & "All files (*.*),*.*"
Title = cGeoData & " Select Project File to Import From..."
fullFileName = Application.GetOpenFilename _
(fileFilter:=fileFilter, _
FilterIndex:=1, _
Title:=Title, _
MultiSelect:=False)
If fullFileName = "" Or fullFileName = "False" Then Exit Sub
pos = InStrRev(fullFileName, "\")
root = Mid(fullFileName, 1, pos)
fileNumber = FreeFile 'FreeFile function
.
- Follow-Ups:
- Re: Mid function compile error
- From: Bernd P
- Re: Mid function compile error
- From: ojv
- Re: Mid function compile error
- References:
- Mid function compile error
- From: ojv
- Mid function compile error
- Prev by Date: Re: Arrays problem in new filtering code
- Next by Date: Padding in cells added to imported spread***
- Previous by thread: Re: Mid function compile error
- Next by thread: Re: Mid function compile error
- Index(es):