Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Method 'Union' of object '_Global' failed error

I keep getting this message when I try to use the union method on a
bunch of defined names. Here's my code:

Set rng1 = Union(Range(Application.Names!Revenue),
Range(Application.Names!Opex),etc....)

Anyone know what this error means and how to prevent/troubleshoot it?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Method 'Union' of object '_Global' failed error

You want something more like...

Set rng1 = Union(Sheets("Sheet1").Range("Revenue"),
Sheets("Sheet1").Range("Opex"),etc....)


--
HTH...

Jim Thomlinson


"sloth" wrote:

I keep getting this message when I try to use the union method on a
bunch of defined names. Here's my code:

Set rng1 = Union(Range(Application.Names!Revenue),
Range(Application.Names!Opex),etc....)

Anyone know what this error means and how to prevent/troubleshoot it?


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
Error 1004 Method 'Range' of object '_Global' failed bjwade62 Excel Programming 4 August 7th 06 03:57 PM
Run-time error '1004': Method 'Cells' of object _Global failed Fran D[_6_] Excel Programming 3 May 12th 06 04:44 PM
Run-time error '1004': Method 'Range' of object '_Global' failed Neild Excel Programming 0 February 12th 06 11:43 PM
<Method 'Range' of object '_Global' failed error Ken Loomis Excel Programming 2 October 12th 04 01:29 PM
Error 1004: Method 'Cells' of object '_Global' failed LT Excel Programming 2 October 31st 03 04:47 PM


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