C
C Brandt
I am having a problem that I have yet to understand.
I started a new workbook and had a problem that I have seen before, but much
more repeatable. Clearly I am missing a key understanding on how selection
works.
I have a button on a sheet called "Control" that will work with another
sheet labelled "POS_DL".
The following are the first few lines of the subroutine:
Private Sub DLPOS_Click()
'
' Import Data File to POS_DL Sheet'
Sheets("POS_DL").Select
Range("A1
1").Select
When it trys to execute the Range Select it gets a run time error '1004'
(Select method of Range Class Failed).
When I replace the line with:
Sheets("POS_DL").Range("A1
1").Select
it works.
I had thought that there was a hierarchical selection scheme where I didn't
have to repeat the sheets addressing on every access.
What am I missing?
Thanks in advance,
Craig
I started a new workbook and had a problem that I have seen before, but much
more repeatable. Clearly I am missing a key understanding on how selection
works.
I have a button on a sheet called "Control" that will work with another
sheet labelled "POS_DL".
The following are the first few lines of the subroutine:
Private Sub DLPOS_Click()
'
' Import Data File to POS_DL Sheet'
Sheets("POS_DL").Select
Range("A1

When it trys to execute the Range Select it gets a run time error '1004'
(Select method of Range Class Failed).
When I replace the line with:
Sheets("POS_DL").Range("A1

it works.
I had thought that there was a hierarchical selection scheme where I didn't
have to repeat the sheets addressing on every access.
What am I missing?
Thanks in advance,
Craig