Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Name Ranges Acting Up

I have workbook with approximately 50 Name Ranges that I have defined for my
Macros to Access. My macros used to work perfectly.

Yesterday when I activate the Macro, the macro gave me edebug messages. In
Excel, when I was verifiying the Name Ranges, about 20 of them defaulted to
#ref. I went an reset them up. They changed agian when I ran the macro.
Instead of referencing different cells, they all reference A1.

Is there a limitation to Name Ranges? Is there a way to keep the worksheet
referencing the correct cell?

Thanks
Dana

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200702/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Name Ranges Acting Up

It sounds as though you are doing some that is messing up the ranges that
they reference, such as deleting a row. But it is hard to be precise without
details.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Fredriksson via OfficeKB.com" <u27002@uwe wrote in message
news:6e7c7d7eb2af7@uwe...
I have workbook with approximately 50 Name Ranges that I have defined for
my
Macros to Access. My macros used to work perfectly.

Yesterday when I activate the Macro, the macro gave me edebug messages. In
Excel, when I was verifiying the Name Ranges, about 20 of them defaulted
to
#ref. I went an reset them up. They changed agian when I ran the macro.
Instead of referencing different cells, they all reference A1.

Is there a limitation to Name Ranges? Is there a way to keep the
worksheet
referencing the correct cell?

Thanks
Dana

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200702/1



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Name Ranges Acting Up

Thanks. I checked my ranges and one of them was deleting the others when
called by the macro.

Thanks

Bob Phillips wrote:
It sounds as though you are doing some that is messing up the ranges that
they reference, such as deleting a row. But it is hard to be precise without
details.

I have workbook with approximately 50 Name Ranges that I have defined for
my

[quoted text clipped - 12 lines]
Thanks
Dana


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200702/1

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Name Ranges Acting Up

Did you use absolute references in your refers to definitions

=Sheet1!$B$9:$B$20

rather than

=sheet1!B9:B20

I have never had a problem with references that were absolute unless I
deleted the range they referred to.

If you want the range to be constant regardless of deletions:

=Indirect("Sheet1!B9:B20")

--
Regards,
Tom Ogilvy


"Fredriksson via OfficeKB.com" wrote:

I have workbook with approximately 50 Name Ranges that I have defined for my
Macros to Access. My macros used to work perfectly.

Yesterday when I activate the Macro, the macro gave me edebug messages. In
Excel, when I was verifiying the Name Ranges, about 20 of them defaulted to
#ref. I went an reset them up. They changed agian when I ran the macro.
Instead of referencing different cells, they all reference A1.

Is there a limitation to Name Ranges? Is there a way to keep the worksheet
referencing the correct cell?

Thanks
Dana

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200702/1


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Name Ranges Acting Up

Thanks I took your suggestion and change all to absolute references
Tom Ogilvy wrote:
Did you use absolute references in your refers to definitions

=Sheet1!$B$9:$B$20

rather than

=sheet1!B9:B20

I have never had a problem with references that were absolute unless I
deleted the range they referred to.

If you want the range to be constant regardless of deletions:

=Indirect("Sheet1!B9:B20")

I have workbook with approximately 50 Name Ranges that I have defined for my
Macros to Access. My macros used to work perfectly.

[quoted text clipped - 9 lines]
Thanks
Dana


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200702/1



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
XL 2007 acting out ? XLFanatico Excel Discussion (Misc queries) 2 December 2nd 09 11:02 PM
Excel acting up Good Excel Workbooks Now Acting Up Excel Discussion (Misc queries) 2 December 1st 09 11:02 PM
Help...my charts are acting up! Geoff Charts and Charting in Excel 2 May 9th 07 09:06 PM
Paste is acting up steven Excel Worksheet Functions 2 November 3rd 06 04:57 PM
VBE acting weird - help dpenny[_4_] Excel Programming 1 January 28th 06 05:25 AM


All times are GMT +1. The time now is 11:47 AM.

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

About Us

"It's about Microsoft Excel"