Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
SMH SMH is offline
external usenet poster
 
Posts: 29
Default My VBA code in excel does not work on another PC

Ihave a code with the following line that does not work on other computer

If (StrComp(Application.WorksheetFunction.Trim(state) . "A") =0) Then
call Updatetime - this is another sub routine.

The code reads the cell which has "A" in it but it just does not call up the
sub routine. It works on my machine but does not work on another machine.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default My VBA code in excel does not work on another PC

SMH:

Ihave a code with the following line that does
not work on other computer

If
(StrComp(Application.WorksheetFunction.Trim(stat
e). "A") =0) Then call Updatetime - this is
another sub routine.

The code reads the cell which has "A" in it but
it just does not call up the sub routine. It
works on my machine but does not work on
another machine.




If UCase(Trim(State)) = "A" Then
Call Updatetime
End If



( )---cucchiaino
  #3   Report Post  
Posted to microsoft.public.excel.programming
SMH SMH is offline
external usenet poster
 
Posts: 29
Default My VBA code in excel does not work on another PC

Thank you but the original code works on my laptop but when I transfer the
spreadsheet to another machine running the same windows Xp and offcie 2003 it
just ignores this line of code. Any idea ?

"cucchiaino" wrote:

SMH:

Ihave a code with the following line that does
not work on other computer

If
(StrComp(Application.WorksheetFunction.Trim(stat
e). "A") =0) Then call Updatetime - this is
another sub routine.

The code reads the cell which has "A" in it but
it just does not call up the sub routine. It
works on my machine but does not work on
another machine.




If UCase(Trim(State)) = "A" Then
Call Updatetime
End If



( )---cucchiaino

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
Can't get bar code font to work in EXCEL 2003 Tony Excel Discussion (Misc queries) 3 December 5th 09 06:19 PM
Why this code is not work? Error code when select worksheet Excel Worksheet Functions 4 December 4th 07 12:51 AM
How can I get this code to work? Sam Excel Programming 1 February 2nd 05 12:24 AM
CommandBar code does NOT work if Excel is Already Open :( sbriscoe Excel Programming 5 July 30th 04 03:33 AM
Why won't this Excel 2000 code work for Excel '97? Andrea[_2_] Excel Programming 0 August 25th 03 12:24 AM


All times are GMT +1. The time now is 03:39 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"