ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to copy data with out using paste method (https://www.excelbanter.com/excel-programming/361288-how-copy-data-out-using-paste-method.html)

jaffar

how to copy data with out using paste method
 
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?



zaphod2003[_3_]

how to copy data with out using paste method
 

There is a way to do this but it's a tad messy.

What you could do is export the data to a text file and then read it
back again. However, could you explain why you don't want to use the
Paste function? :confused:


--
zaphod2003
------------------------------------------------------------------------
zaphod2003's Profile: http://www.excelforum.com/member.php...o&userid=34362
View this thread: http://www.excelforum.com/showthread...hreadid=541440


jaffar

how to copy data with out using paste method
 
hi zaphod,
Can you give me sample code for exporting data to text file
and get back.

Client told us, I need to avoid using the paste method as it has a limit of
255 characters, users may fill the "note " field with much more data that
255 characters.



"zaphod2003" wrote
in message ...

There is a way to do this but it's a tad messy.

What you could do is export the data to a text file and then read it
back again. However, could you explain why you don't want to use the
Paste function? :confused:


--
zaphod2003
------------------------------------------------------------------------
zaphod2003's Profile:
http://www.excelforum.com/member.php...o&userid=34362
View this thread: http://www.excelforum.com/showthread...hreadid=541440





All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com