Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2007 vs Excel 2003 = Runtime Error 438

I have created a macro in Excel 2007 with no issues, but when I take it to
work and try to run it using Excel 2003, I keep getting "runtime error 438".

When I debug it takes me to the Line:

Sheets("SHEET1").Select
ActiveSheet.Range("$A$2:$D$3000").RemoveDuplicates Columns:=Array(1, 2,
3, 4), _
Header:=xlYes

Is this not supported in Excel 2003?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Excel 2007 vs Excel 2003 = Runtime Error 438

RemoveDuplicates was apparently added in XL2007.

--
Rick (MVP - Excel)


"Coleman1" wrote in message
...
I have created a macro in Excel 2007 with no issues, but when I take it to
work and try to run it using Excel 2003, I keep getting "runtime error
438".

When I debug it takes me to the Line:

Sheets("SHEET1").Select
ActiveSheet.Range("$A$2:$D$3000").RemoveDuplicates Columns:=Array(1, 2,
3, 4), _
Header:=xlYes

Is this not supported in Excel 2003?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Excel 2007 vs Excel 2003 = Runtime Error 438

The Version Information in this help file shows that it was added in
XL2007...

http://office.microsoft.com/client/h... EV&lcid=1033

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
RemoveDuplicates was apparently added in XL2007.

--
Rick (MVP - Excel)


"Coleman1" wrote in message
...
I have created a macro in Excel 2007 with no issues, but when I take it to
work and try to run it using Excel 2003, I keep getting "runtime error
438".

When I debug it takes me to the Line:

Sheets("SHEET1").Select
ActiveSheet.Range("$A$2:$D$3000").RemoveDuplicates Columns:=Array(1,
2,
3, 4), _
Header:=xlYes

Is this not supported in Excel 2003?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2007 vs Excel 2003 = Runtime Error 438

Thanks Rick. Is there another way to achieve this same action in Excel 2003?

"Rick Rothstein" wrote:

RemoveDuplicates was apparently added in XL2007.

--
Rick (MVP - Excel)


"Coleman1" wrote in message
...
I have created a macro in Excel 2007 with no issues, but when I take it to
work and try to run it using Excel 2003, I keep getting "runtime error
438".

When I debug it takes me to the Line:

Sheets("SHEET1").Select
ActiveSheet.Range("$A$2:$D$3000").RemoveDuplicates Columns:=Array(1, 2,
3, 4), _
Header:=xlYes

Is this not supported in Excel 2003?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Excel 2007 vs Excel 2003 = Runtime Error 438

You will have to write a subroutine to process the cells in the range. There
are plenty of code examples out there that you can use as a template. I'd
start with a Google search using this search string...

excel vba remove duplicates entries

--
Rick (MVP - Excel)


"Coleman1" wrote in message
...
Thanks Rick. Is there another way to achieve this same action in Excel
2003?

"Rick Rothstein" wrote:

RemoveDuplicates was apparently added in XL2007.

--
Rick (MVP - Excel)


"Coleman1" wrote in message
...
I have created a macro in Excel 2007 with no issues, but when I take it
to
work and try to run it using Excel 2003, I keep getting "runtime error
438".

When I debug it takes me to the Line:

Sheets("SHEET1").Select
ActiveSheet.Range("$A$2:$D$3000").RemoveDuplicates Columns:=Array(1,
2,
3, 4), _
Header:=xlYes

Is this not supported in Excel 2003?





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
Code Works Fine in Excel 2007, Excel 2000 generates Runtime Error 438 Safari Excel Programming 0 June 25th 09 03:53 PM
Excel 2003 Runtime Error M4Help Setting up and Configuration of Excel 0 March 13th 08 09:00 PM
Excel 2000 - Excel 2003 now throws 'runtime error' Ralph L Excel Programming 3 April 10th 06 05:20 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Excel 2003 Help Runtime Error Weezay Excel Discussion (Misc queries) 1 January 27th 05 06:57 PM


All times are GMT +1. The time now is 03:20 PM.

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"