> Here are the first couple of lines of the code. MacXL returns a debug error
> on the first line.
[quoted text clipped - 14 lines]
> SkipBlanks _
> :=False, Transpose:=False
What actual error do you get? ("debug" is not an error, it's an option)
The most likely error for the first line is a "Subscript out of range"
error if you don't have a worksheet in the Active Workbook named "E-mail
data".
Note that you can replace the above without the selections using
something like:
Dim rSource As Range
Dim rDest As Range
Set rSource = Sheets("E-mail data").Range("A20:M20")
Set rDest = Sheets("Registration").Range("B3").Resize( _
rSource.Rows.Count, rSource.Columns.Count)
rDest.Value = rSource.Value
Or, more compactly with
With Sheets("E-mail data").Range("A20:M20")
Sheets("Registration").Range("B3").Resize( _
.Rows.Count, .Columns.Count).Value = .Value
End With
fergalom - 03 Oct 2007 14:04 GMT
Thanks for the info,
The spreadsheet does contain a sheet called "E-mail data" (i.e. word for word
and case sensitive match)
The exact error is:
"Runtime error 32809 - Application defined or object defined error"
>> Here are the first couple of lines of the code. MacXL returns a debug error
>> on the first line.
[quoted text clipped - 25 lines]
> .Rows.Count, .Columns.Count).Value = .Value
> End With
JE McGimpsey - 03 Oct 2007 15:35 GMT
> The spreadsheet does contain a sheet called "E-mail data" (i.e. word for word
> and case sensitive match)
>
> The exact error is:
>
> "Runtime error 32809 - Application defined or object defined error"
The only reference I can find to that particular error relates to a
missing type library. In the VBE, choose Tools/References, and see if
any of the type libraries start with "MISSING". If so, you'll have to
reinstall them.
fergalom - 03 Oct 2007 16:37 GMT
Thanks for the help.
Sorted it myself in the end. Turns out, I had a rogue winXL control button on
the spreadsheet. Must have creeped in while the spreadsheet was being put
together.
Once I deleted that, it worked away no problem in MacXL
F
>> The spreadsheet does contain a sheet called "E-mail data" (i.e. word for word
>> and case sensitive match)
[quoted text clipped - 7 lines]
>any of the type libraries start with "MISSING". If so, you'll have to
>reinstall them.
JE McGimpsey - 03 Oct 2007 16:42 GMT
> Sorted it myself in the end. Turns out, I had a rogue winXL control button on
> the spreadsheet. Must have creeped in while the spreadsheet was being put
> together.
>
> Once I deleted that, it worked away no problem in MacXL
Thanks for the info!