these work the same
range("a1:b1").copy
range("c1:d1").paste special paste: = xlPasteValues
range("c1:d1").value=range("a1:b1").value
the range size must be the same
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"jaffar" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
>
>
> We have 36 excel files, each excel file consists 9 sheets. The 36 excel
> files are copy of the some excel file. In some sheets of excel files may
> contain data and some may not contain data.
>
>
>
> So in my main excel file I have written a macro which copies the data (my
> macro wont copy whole sheet it copies data sheets which is having data in
> the cells, if any row not containing any data then that row is not copied)
> from all these 36 excel files into a new sheets of new workbook, for this
> I have used
>
> Paste special pate: = xlPasteValues etc.
>
> This is working fine but I want to achieve exact functionality with out
> using Paste methods, is it possible to do this requirement with out using
> paste method? If yes can you tell me how to do this?
>
>
>
> Are there any alternative methods?
>
>
>
> "Puppet_Sock" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> jaffar wrote:
>>> I have a macro , using this macro i can copy an excel sheet into
>>> another excel sheet, but i used paste method ( pastespecial
>>> paste:=xlpastevalues),
>>>
>>> I want the same functionality with out using paste method,
>>>
>>> How can i do this task?
>>
>> Do you mean you want to make a copy of an entire sheet?
>> You can do this sort of thing with the tabs at the bottom.
>> Try clicking and dragging, with or without the <Ctrl> key.
>>
>> To make a macro that does the same sort of thing, the
>> macro recorder is your friend. If you can learn to do it
>> manually, you can get the basics of the macro codes
>> to do it. Then you can easily modify them to do more
>> complicated and custom actions.
>>
>> If that's not what you meant, then can you explain differently?
>> Socks
>>
>
>