Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with Range function after SP3 installed

Hi all,
I use this function to iterate through a vertical range of cells:

Set zone = Sheets(1).Range([A1], [A1].End(xlDown))

For Each dom In zone
.....
Next

Unfortunately after I have installed SP3 on Excel 2002 this doesn't work anymore.
The compiler issues an error on the blocks delimited by parenthesis
([A1] f.example).

Has something changed that disallow reading a range of cells ?
Hope somebody can help me...
Thanks alot
Francesco
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Problem with Range function after SP3 installed

Hi Francesco,

I think your problem is one of qualification and is independent of the
version in use.

Set zone = Sheets(1).Range([A1], [A1].End(xlDown))


worked for me only if Sheets(1) is the active sheet. Since you do not
qualify [A1], this refers to the A1 cell on the active sheet.

You can avoid the problem by qualifying, e.g.:

With Sheets(1)
Set zone = .Range(.[A1], .[A1].End(xlDown))
End With

or, better (IMHO):

With Sheets(1)
Set zone = .Range(.Range("A1"), .Range("A1").End(xlDown))
End With


---
Regards,
Norman



"Francesco M." wrote in message
om...
Hi all,
I use this function to iterate through a vertical range of cells:

Set zone = Sheets(1).Range([A1], [A1].End(xlDown))

For Each dom In zone
.....
Next

Unfortunately after I have installed SP3 on Excel 2002 this doesn't work
anymore.
The compiler issues an error on the blocks delimited by parenthesis
([A1] f.example).

Has something changed that disallow reading a range of cells ?
Hope somebody can help me...
Thanks alot
Francesco



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
installed autosave function and now have issue with redo function JT Spitz Excel Discussion (Misc queries) 2 October 26th 09 04:46 PM
redo function loss after auto-save (just installed) activates. JT Spitz Excel Discussion (Misc queries) 0 October 26th 09 04:38 PM
function problem regarding cell range chindo Excel Worksheet Functions 1 November 10th 05 03:06 AM
=Why AddIns.Installed can be out of range= Tom Ogilvy Excel Programming 2 January 14th 05 09:37 PM
=Why AddIns.Installed can be out of range= hcova[_2_] Excel Programming 0 September 21st 04 06:37 PM


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