Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can i use range-object for .object.value=

Hello programmers !

Here is my problem :

I wouldlike to put some value into a sheet. the destination cells
depends on the selection. The selection is always type of Range. But i
have to use a conversion to write it down .

Dim bereich as range

AZelle = CStr(ActiveCell.Address)
..
..
..
Worksheets("Protect").Range(AZelle).Value = dteDatum

I dontīt like this . Why canīt i use

Worksheets("Protect").bereich.Value = dteDatum

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Can i use range-object for .object.value=

First, i don't see where you set bereich.

If you use

Dim bereich As Range
Set bereich = ActiveCell

then you can use

bereich.Value = dteDatum


If bereich is not on Sheet "Protect", then you can use

Worksheets("Protect").Range(bereich.Address).Value = dteDatum

since a range object is a child object of a worksheet, and can't belong
to two different worksheets.


In article .com,
"bigburt" wrote:

Hello programmers !

Here is my problem :

I wouldlike to put some value into a sheet. the destination cells
depends on the selection. The selection is always type of Range. But i
have to use a conversion to write it down .

Dim bereich as range

AZelle = CStr(ActiveCell.Address)
.
.
.
Worksheets("Protect").Range(AZelle).Value = dteDatum

I dontīt like this . Why canīt i use

Worksheets("Protect").bereich.Value = dteDatum

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can i use range-object for .object.value=

Dim bereich as range

set bereich = ActiveCell
..
..
..
..

bereich.Value = dteDatum

--
Regards,
Tom Ogilvy



"bigburt" wrote in message
oups.com...
Hello programmers !

Here is my problem :

I wouldlike to put some value into a sheet. the destination cells
depends on the selection. The selection is always type of Range. But i
have to use a conversion to write it down .

Dim bereich as range

AZelle = CStr(ActiveCell.Address)
..
..
..
Worksheets("Protect").Range(AZelle).Value = dteDatum

I dontīt like this . Why canīt i use

Worksheets("Protect").bereich.Value = dteDatum


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can i use range-object for .object.value=

or, if the activecell is not on sheet protect and you just want to use its
address (and it changes in the "meantime")

Dim bereich as Range
set bereich = ActiveCell

..
..
..

Worksheets("Protect").Range(bereich.Address).Value = dteDatum

--
Regards,
Tom Ogilvy

"bigburt" wrote in message
oups.com...
Hello programmers !

Here is my problem :

I wouldlike to put some value into a sheet. the destination cells
depends on the selection. The selection is always type of Range. But i
have to use a conversion to write it down .

Dim bereich as range

AZelle = CStr(ActiveCell.Address)
..
..
..
Worksheets("Protect").Range(AZelle).Value = dteDatum

I dontīt like this . Why canīt i use

Worksheets("Protect").bereich.Value = dteDatum


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can i use range-object for .object.value=

Good work,

very fast answer

Thanks a lot
greetings from Germany

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
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM
returning pivottable object from a range object Grant Excel Programming 2 September 27th 04 02:22 AM
Range object to Array object conversion Myrna Larson[_2_] Excel Programming 1 August 1st 03 02:27 AM
Range object to Array object conversion Alan Beban[_3_] Excel Programming 0 August 1st 03 01:24 AM
Range object to Array object conversion Tom Ogilvy Excel Programming 0 August 1st 03 12:16 AM


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