Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default button gets named range

Using XL2000, I use the following to grab a named range from one sheet and
paste it into another by clicking on one of several buttons:

Sub GetMeal()
Range(Mid(Application.Caller, 4)).Copy
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

I now have a need to change the names of those ranges. I tried renaming one
of them as a test, and clicking the button that worked with the 'old' range
gives me an error - Method 'Range' of object '_Global' failed.

How to fix?

--
David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default button gets named range

David Turner wrote

Using XL2000, I use the following to grab a named range from one sheet
and paste it into another by clicking on one of several buttons:

Sub GetMeal()
Range(Mid(Application.Caller, 4)).Copy
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

I now have a need to change the names of those ranges. I tried
renaming one of them as a test, and clicking the button that worked
with the 'old' range gives me an error - Method 'Range' of object
'_Global' failed.

How to fix?


Duh! Never mind. I forgot I had assigned cmd<rangename to each button.
Changing to cmd<newrangename fixed it.

--
David
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
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
automatic range - named range give me circular reference... George Thorogood Excel Discussion (Misc queries) 0 February 22nd 07 07:53 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM


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