Copy data from current work to another
Closed
Sushil.gaikwad27
Posts
2
Registration date
Saturday March 15, 2014
Status
Member
Last seen
April 13, 2014
-
Mar 15, 2014 at 05:01 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Apr 13, 2014 at 04:43 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Apr 13, 2014 at 04:43 AM
Related:
- Copy data from current work to another
- Transfer data from one excel worksheet to another automatically - Guide
- Tmobile data check - Guide
- Fire current casino - Download - Online gaming and betting
- Gta 5 data download for pc - Download - Action and adventure
- Digital data transmission - Guide
5 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Mar 17, 2014 at 12:52 AM
Mar 17, 2014 at 12:52 AM
quote
first open the workbook and activate the sheet and then define IRow (an not before)
lRow = Range("A1").End(xlDown).Rowunquote
Range("A2:D" & lRow).Copy
Workbooks.Open "C:\MyFiles\Test.xls" 'Change file path to match yours
first open the workbook and activate the sheet and then define IRow (an not before)
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Apr 3, 2014 at 12:17 AM
Apr 3, 2014 at 12:17 AM
please post s very small extract of data (you can upload it to speedyshare.com and post the download url) and AGAIN EXPLAIN. It would be difficult to see the explanation to a thread some threads before and so my request for explanation again
Sushil.gaikwad27
Posts
2
Registration date
Saturday March 15, 2014
Status
Member
Last seen
April 13, 2014
Apr 13, 2014 at 03:42 AM
Apr 13, 2014 at 03:42 AM
http://speedy.sh/KmbXW/Book2-3.xlsx
I have a spreadsheet from which I am copying data and pasting it in the mentioned link of macro. the spreadsheet attached has the sample data and while pasting I need the macro to paste the data and the end of the row .
I have a spreadsheet from which I am copying data and pasting it in the mentioned link of macro. the spreadsheet attached has the sample data and while pasting I need the macro to paste the data and the end of the row .
Didn't find the answer you are looking for?
Ask a question
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Apr 13, 2014 at 04:43 AM
Apr 13, 2014 at 04:43 AM
the macro seems to be ok. which code gives porblem and what is the error
after you code statement
Workbooks.Open "C:\MyFiles\Test.xls" 'Change file path to match yours
add a statement
Worksheets("Sheet1").Activate
( this may not necessary for the code run but it may copy in some sheet no necessarily the sheet you want)
if it works in 2007 it shd work in 2010 also
is the file you mentioned above , does it exist check
how to copy the macro in xlsx 2007 or above
click developer ribbon
veditor
control+R
see all open files (better close all other files)
select the file you are interested
in the vb menu bar click insert - module
on the right side of vbeditor is the module
paste the macro there
save the file as MACRO ENABLE WORKBOOK
CLOSE THE FILE
OPEN AND CLICK OPTION AT THE TOP AND ENABLE MACROS.
RUN THE MACRO
after you code statement
Workbooks.Open "C:\MyFiles\Test.xls" 'Change file path to match yours
add a statement
Worksheets("Sheet1").Activate
( this may not necessary for the code run but it may copy in some sheet no necessarily the sheet you want)
if it works in 2007 it shd work in 2010 also
is the file you mentioned above , does it exist check
how to copy the macro in xlsx 2007 or above
click developer ribbon
veditor
control+R
see all open files (better close all other files)
select the file you are interested
in the vb menu bar click insert - module
on the right side of vbeditor is the module
paste the macro there
save the file as MACRO ENABLE WORKBOOK
CLOSE THE FILE
OPEN AND CLICK OPTION AT THE TOP AND ENABLE MACROS.
RUN THE MACRO