Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Compile Error on Deployment

I have an Excel spreadhseet that makes use of the VBA function str. When it
is run on a machine in Germany they get a error with the str function, as if
it is not part of the language.

Another user in the U.S. was trying to use the spreadsheet (run from their
network) and got a Compile Error: Automation Error with the line:
Private Sub LegendSetFont(ByRef cht as ChartObject)

The speadsheet works on my Office 2003 and Office 2002 versions of Excel.

Any suggestions will be appreciated.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default VBA Compile Error on Deployment

The Germany problem sounds like Germany is missing a Reference. Have them go
into the VBE and check for a 'Missing' Reference or build in the reference
via code. Check out "AddFromGuid" and "AddFromFile".
I don't know about the chart error, sorry.
HTH and Good luck,
Gary Brown


"ran010303" wrote:

I have an Excel spreadhseet that makes use of the VBA function str. When it
is run on a machine in Germany they get a error with the str function, as if
it is not part of the language.

Another user in the U.S. was trying to use the spreadsheet (run from their
network) and got a Compile Error: Automation Error with the line:
Private Sub LegendSetFont(ByRef cht as ChartObject)

The speadsheet works on my Office 2003 and Office 2002 versions of Excel.

Any suggestions will be appreciated.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default VBA Compile Error on Deployment


"ran010303" wrote in message
...
I have an Excel spreadhseet that makes use of the VBA function str. When

it
is run on a machine in Germany they get a error with the str function, as

if
it is not part of the language.

Another user in the U.S. was trying to use the spreadsheet (run from their
network) and got a Compile Error: Automation Error with the line:
Private Sub LegendSetFont(ByRef cht as ChartObject)

The speadsheet works on my Office 2003 and Office 2002 versions of Excel.

Any suggestions will be appreciated.

Thanks.


Where is the Str function? In a cell? In a macro? As for the second problem,
I agree with Gary's reply.
Can you show the code or the function where Str appears?

/Fredrik


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default VBA Compile Error on Deployment

The reason I believe it's a reference issue is because when a reference is
missing you get errors that say the str function or the find function etc etc
are missing. I don't believe the issue is a problem with the str function at
all.
HTH,
Gary Brown

"Fredrik Wahlgren" wrote:


"ran010303" wrote in message
...
I have an Excel spreadhseet that makes use of the VBA function str. When

it
is run on a machine in Germany they get a error with the str function, as

if
it is not part of the language.

Another user in the U.S. was trying to use the spreadsheet (run from their
network) and got a Compile Error: Automation Error with the line:
Private Sub LegendSetFont(ByRef cht as ChartObject)

The speadsheet works on my Office 2003 and Office 2002 versions of Excel.

Any suggestions will be appreciated.

Thanks.


Where is the Str function? In a cell? In a macro? As for the second problem,
I agree with Gary's reply.
Can you show the code or the function where Str appears?

/Fredrik



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default VBA Compile Error on Deployment


"Gary Brown" wrote in message
...
The reason I believe it's a reference issue is because when a reference is
missing you get errors that say the str function or the find function etc

etc
are missing. I don't believe the issue is a problem with the str function

at
all.
HTH,
Gary Brown


Hmm... What you're saying is that this error is a side effect of the
missing reference? I have never seen this problem before. Interesting, you
learn something new every day.

/Fredrik




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Compile Error on Deployment

Below is the VBA code section with the str function:

With Worksheets("Tables")
cmdPlotEnvelope.Caption = "Add/Del Mask #" & Str(.Cells(38, 2))
cmdSetXdbFloor.Caption = "Set X dB Floor #" & Str(.Cells(38, 2))
cmdSetS.Caption = "Set S (Slope) #" & Str(.Cells(38, 2))
End With


"Fredrik Wahlgren" wrote:


"ran010303" wrote in message
...
I have an Excel spreadhseet that makes use of the VBA function str. When

it
is run on a machine in Germany they get a error with the str function, as

if
it is not part of the language.

Another user in the U.S. was trying to use the spreadsheet (run from their
network) and got a Compile Error: Automation Error with the line:
Private Sub LegendSetFont(ByRef cht as ChartObject)

The speadsheet works on my Office 2003 and Office 2002 versions of Excel.

Any suggestions will be appreciated.

Thanks.


Where is the Str function? In a cell? In a macro? As for the second problem,
I agree with Gary's reply.
Can you show the code or the function where Str appears?

/Fredrik



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default VBA Compile Error on Deployment


"ran010303" wrote in message
...
Below is the VBA code section with the str function:

With Worksheets("Tables")
cmdPlotEnvelope.Caption = "Add/Del Mask #" & Str(.Cells(38, 2))
cmdSetXdbFloor.Caption = "Set X dB Floor #" & Str(.Cells(38, 2))
cmdSetS.Caption = "Set S (Slope) #" & Str(.Cells(38, 2))
End With



This looks OK to me. AFAIK, VBA code doesn't get translated . I guess Gary
is right then.

/Fredrik


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solver - error - Compile Error Nina Excel Discussion (Misc queries) 0 August 19th 08 09:41 PM
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM
Compile error in hidden module error Melissa Zebrowski Excel Programming 3 February 20th 04 01:29 PM


All times are GMT +1. The time now is 02:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"