JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for EXCEL-VB-DISCUSS Archives


EXCEL-VB-DISCUSS Archives

EXCEL-VB-DISCUSS Archives


EXCEL-VB-DISCUSS@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

EXCEL-VB-DISCUSS Home

EXCEL-VB-DISCUSS Home

EXCEL-VB-DISCUSS  September 2000

EXCEL-VB-DISCUSS September 2000

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

RE: Range problem

From:

"Umlas, Robert " <[log in to unmask]>

Reply-To:

[log in to unmask]

Date:

Mon, 25 Sep 2000 12:42:18 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (209 lines)

The value of the department, then, MUST be a range. Suppose
?cbodept.value gives you 
SALES
You need a range named "Sales" in order for
Range(cbodept.value) to mean something
Do you have that?

Bob Umlas
Excel MVP
KPMG Tax Technology Practice
[log in to unmask]
To see detailed explanation of how array formulas work. visit:
http://www.emailoffice.com/excel/arrays-bobumlas.html


-----Original Message-----
From: [log in to unmask] [mailto:[log in to unmask]]
Sent: Monday, September 25, 2000 12:36 PM
To: [log in to unmask]
Subject: RE: Range problem




When I type ?cboDept.value is gives me the name of the department I
selected.
However, if I type ?Range(cboDept.Value) I get a run-time error '1004'.




"Umlas, Robert " <[log in to unmask]> on 09/25/2000 12:29:28 PM

Please respond to [log in to unmask]

To:   "[log in to unmask]" <[log in to unmask]>
cc:    (bcc: Stephen E Jones/IT/ORL/HARCOURT)

Subject:  RE: Range problem




What do you get when the macro breaks when you type
?choDept.Value in the immediate pane?
Does that value make sense?
If so, type
?Range(choDept.Value).Address
Does that make sense?

Bob Umlas
Excel MVP
KPMG Tax Technology Practice
[log in to unmask]
To see detailed explanation of how array formulas work. visit:
http://www.emailoffice.com/excel/arrays-bobumlas.html


-----Original Message-----
From: [log in to unmask] [mailto:[log in to unmask]]
Sent: Monday, September 25, 2000 12:22 PM
To: [log in to unmask]
Subject: RE: Range problem




Hi Robert.  cboDept.Value is a value that the user is selecting from a
combobox
named cboDept.  In this case it is a department name.  I have all the
department
tables set up on a separate data sheet.  When the value is selected the data
from the table is charted on the worksheet.

   I'm using the following line to chart the values:

        ActiveChart.SetSourceData
Source:=Sheets("Data").Range(cboDept.Value)

   And this works fine for the chart, but I want to transfer the range
values
from the data sheet to the main sheet so that I can perform some
calculations.

   Stephen






"Umlas, Robert " <[log in to unmask]> on 09/25/2000 11:56:23 AM

Please respond to [log in to unmask]

To:   "[log in to unmask]" <[log in to unmask]>
cc:    (bcc: Stephen E Jones/IT/ORL/HARCOURT)

Subject:  RE: Range problem




Question is, what's cbodept.value? Unless you've done a
Set cbodept = Range("something")
then cbodept.value means nothing. cbodept may contain some value, but not
cbodept.value.
If you HAVE done Set cbodept = Range("something"), then its value needs to
be a reference to a range, like "D12", for example, or "A1". That is,
cbodept.value must be a string, like "A1", or a range name, like "MySales",
then Range(cbodept.value) becomes Range("A1").value or
Range("Mysales").value.
So, run the code again and when it bombs, use ctrl/G to get the immediate
pane up and enter
?cbodept.value
or even
?cbodept
to help see what's going on.
HTH

Bob Umlas
Excel MVP
KPMG Tax Technology Practice
[log in to unmask]
To see detailed explanation of how array formulas work. visit:
http://www.emailoffice.com/excel/arrays-bobumlas.html


-----Original Message-----
From: [log in to unmask] [mailto:[log in to unmask]]
Sent: Monday, September 25, 2000 11:43 AM
To: [log in to unmask]
Subject: Range problem




Hello group!  Can someone please tell me why this code isn't working:

Sheets("Data").Select
  Range(cboDept.Value).Select
  Selection.Copy
  Sheets("Incoming Calls 1999_2000").Select
  Range("C24").Select
  ActiveSheet.Paste

I keep getting an error stating:  Method 'Range' of object '_Worksheet'
failed.
I've tried all sorts of ways of transferring the values of the range from
one
sheet to the other but I keep getting errors.  I' m sure it has something to
do
with assigning
the range name by using the combobox, but I can't figure it out.

Thanks,
Stephen


****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.
****************************************************************************
*





****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.
****************************************************************************
*





*****************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
*****************************************************************************


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Top of Message | Previous Page | Permalink

JISCMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

February 2012
November 2011
October 2011
September 2011
July 2011
June 2011
April 2011
March 2011
February 2011
August 2010
June 2010
May 2010
January 2010
November 2009
September 2009
August 2009
July 2009
January 2009
September 2008
August 2008
July 2008
June 2008
May 2008
March 2008
February 2008
January 2008
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001
December 2000
November 2000
October 2000
September 2000
August 2000
July 2000
June 2000
May 2000
April 2000
March 2000
February 2000
January 2000
December 1999
November 1999
October 1999
September 1999
August 1999
July 1999
June 1999
May 1999
April 1999
March 1999
February 1999
January 1999
December 1998
November 1998
October 1998
September 1998
August 1998
July 1998
June 1998
May 1998
April 1998
March 1998


WWW.JISCMAIL.AC.UK

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager