Re: Compile error on VBA Function
- From: "Peter T" <peter_t@discussions>
- Date: Thu, 2 Nov 2006 22:01:23 -0000
Is this why I sometimes can't use the Format function?
Really ?
does this work for you -
MsgBox VBA.Strings.Format(Date, "ddd dd mmm yy")
Regards,
Peter T
"Niek Otten" <nicolaus@xxxxxxxxx> wrote in message
news:uxXggfs$GHA.1556@xxxxxxxxxxxxxxxxxxxxxxx
Hi Dave,struggling with that one for years! Of course I found
Is this why I sometimes can't use the Format function? I've been
workarounds, but they use work*** functions which is always lessefficient.
news:454A63F0.E653FE44@xxxxxxxxxxxxxxxxxxx
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
"Dave Peterson" <petersod@xxxxxxxxxxxxxxxx> wrote in message
| This is a common problem. I'd look once more for that missingreference. (It
| can't hurt!)'MISSING'.
|
| MSweetG222 wrote:
| >
| > No missing DLL references on either machine.
| > Thanks for the suggestion.
| > --
| > Thx
| > MSweetG222
| >
| > "Gary Brown" wrote:
| >
| > > On the other machine, get into the VBE.
| > > Check Tools>References for a checked reference that stats with
| > > Fix the reference.of the
| > > --
| > > HTH,
| > > Gary Brown
| > > gary.DeleteThis2SendMeAnEmail.Brown@xxxxxxxxxxxx
| > > If this post was helpful to you, please select ''YES'' at the bottom
| > > post.machine.
| > >
| > >
| > >
| > > "MSweetG222" wrote:
| > >
| > > > All - I have written a .xla program. Program works great on my
| > > > However, when installed another computer, I receive a compileerror on the
| > > > VBA functions. See below for an example...in example subroutine,the other
| > > > computer has a compile error on the LEFT function. On mycomputer, no issues.
| > > >not
| > > > Additional info: Tools | Options | Require Variable Declaration is
| > > > checked on either computer. All variables are defined and optionexplicit is
| > > > set on every module in the .xla.get past
| > > >
| > > > --------------------------------------------------
| > > > Example
| > > > --------------------------------------------------
| > > > Option Explicit
| > > >
| > > > Sub Test
| > > >
| > > > Dim AnyString as string
| > > > Dim MyStr as string
| > > > AnyString = "Hello World"
| > > > MyStr = Left(AnyString, 7) '<<< Compile error on LEFT function
| > > >
| > > > End Sub
| > > >
| > > > --------------------------------------------------
| > > >
| > > > What do I need to do to the .xla or to the computer in question to
| > > > this compile issue?
| > > >
| > > > Thank you for any assistance.
| > > >
| > > > MSweetG222
| > > >
|
| --
|
| Dave Peterson
.
- Follow-Ups:
- Re: Compile error on VBA Function
- From: Niek Otten
- Re: Compile error on VBA Function
- References:
- Re: Compile error on VBA Function
- From: Dave Peterson
- Re: Compile error on VBA Function
- From: Niek Otten
- Re: Compile error on VBA Function
- Prev by Date: Re: AutoFilter - How to determine number of records found
- Next by Date: Re: Excel Colors
- Previous by thread: Re: Compile error on VBA Function
- Next by thread: Re: Compile error on VBA Function
- Index(es):