Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Confusion about how the Window object fits into the Excel object model | Excel Programming | |||
returning pivottable object from a range object | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |