Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Macro & runtime problem

Hi,

I have a macro as shown below:

Dim x As Long

x = Application.WorksheetFunction.Match(ActiveSheet.Ra nge("AT1") _
, Worksheets("Wall data").Range("B:B"), 0)
Worksheets("Wall data").Cells(x, 17).Value = ActiveSheet.Cells(1,
47).Value

Worksheets("Wall data").Cells(x, 18).Value = ActiveSheet.Cells(2,
47).Value

Worksheets("Wall data").Cells(x, 19).Value = ActiveSheet.Cells(3,
47).Value

Worksheets("Wall data").Cells(x, 20).Value = ActiveSheet.Cells(4,
47).Value

Worksheets("Wall data").Cells(x, 21).Value = ActiveSheet.Cells(5,
47).Value

Worksheets("Wall data").Cells(x, 22).Value = ActiveSheet.Cells(6,
47).Value

Worksheets("Wall data").Cells(x, 24).Value = ActiveSheet.Cells(8,
47).Value

Worksheets("Wall data").Cells(x, 23).Value = ActiveSheet.Cells(7,
47).Value

Worksheets("Wall data").Cells(x, 25).Value = ActiveSheet.Cells(10,
47).Value

Worksheets("Wall data").Cells(x, 26).Value = ActiveSheet.Cells(9,
47).Value

Worksheets("Wall data").Cells(x, 27).Value = ActiveSheet.Cells(11,
47).Value


End Sub


I can run it OK from my PC, but one of my colleagues gets the
following message when he tries to run it:

Run Time error 1004
Unable to get MatchProperty of the worksheet function class

Can anyone please advise what this message means and/or what isn't
happening?

Cheers

Peter
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
JB Bates' Runtime Error 1004 problem Ken Johnson Excel Discussion (Misc queries) 0 December 26th 09 10:32 PM
Runtime error in Macro. Tel Excel Discussion (Misc queries) 4 July 20th 09 02:21 PM
Runtime error textbox problem - help required N E Body Excel Programming 3 October 19th 04 10:27 PM
Coding problem: Runtime 1004 Phil Hageman Excel Programming 0 July 24th 03 05:29 PM
RunTime code problem drum118 Excel Programming 4 July 19th 03 12:15 PM


All times are GMT +1. The time now is 05:24 AM.

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

About Us

"It's about Microsoft Excel"