Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Macro not working on other computers

Glad you got it working..............thanks for closing the loop


Vaya con Dios,
Chuck, CABGx3



"Varne" wrote:

Hi

Windows("WBD16230920067.xls").Activate also is not working. However we
checked with 2 other computers the codes worked. Then from the problem
computer we logged on with a different username and password and it worked.

I wrote the codes file dependant but directory independant because different
log ons have different directory and file arrangements in our network.

I copy and paste part of the codes so it may be easier for the the solver.

Sub Budgetflexer()

Application.ScreenUpdating = False

Windows("WBD16230920067").Activate (the problem line)

ActiveWorkbook.Unprotect Password:="gre"

Sheets("Budgets").Visible = True
Sheets("Budgets").Select
ActiveSheet.Unprotect xyz

Range("bc1:dz100").Select
Selection.Clear

Cells(1, 53).Select
Do
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell = Cells(2, 28)
ActiveCell.Offset(0, 1).Select
Selection.Copy
Cells(2, 55).Select
ActiveSheet.Paste
Application.CutCopyMode = xlCopy


Cells(1, 53).Select
Do
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell = Cells(2, 28) + 1
ActiveCell.Offset(0, 1).Select
Selection.Copy
Cells(2, 56).Select
ActiveSheet.Paste
Application.CutCopyMode = xlCopy

Cells(1, 53).Select
Do
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell = Cells(2, 28) + 2
ActiveCell.Offset(0, 1).Select
Selection.Copy
Cells(2, 57).Select
ActiveSheet.Paste
Application.CutCopyMode = xlCopy


Thanks

Varne



"CLR" wrote:

Try this.........

Windows("WBD16230920067.xls").Activate

Vaya con Dios,
Chuck, CABGx3



"Varne" wrote:

Hi

The other machine is 2003 version. Mine is 2003 version. The problem line is
Windows("WBD16230920067").Activate and I checked the file name. It is ok.
When I take out the line the macro works.

Thanks

M Varnendra

"CLR" wrote:

Check what version of Excel is used on the computers that will not run the
macro. Some VBA commands will not work with older versions. To solve the
problem if this is the cause, just re-write the code in the oldest version of
Excel being used by your group.

Vaya con Dios,
Chuck, CABGx3



"Varne" wrote:

Hi

I did a macro but it is not running on other computers. Can someone give me
a list of possible reasons?

The macro works on a single excel sheet.

Thanks

Varne

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
Macro not working on other peoples computers JonathanW Excel Discussion (Misc queries) 1 May 31st 07 01:50 AM
Working from 2 computers famdamly Excel Discussion (Misc queries) 8 February 25th 06 11:23 PM
macro not working Jonathan Cooper Excel Discussion (Misc queries) 1 February 1st 06 10:06 PM
Macro works differently on different computers, same version of Ex oscardwilde Excel Discussion (Misc queries) 6 December 28th 05 11:22 PM
Working with templates on different computers Don Excel Worksheet Functions 2 February 14th 05 02:52 AM


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