Copy data from current work to another
Closed
Sushil.gaikwad27
Posts
2
Registration date
Saturday 15 March 2014
Status
Member
Last seen
13 April 2014
-
15 Mar 2014 à 05:01
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 13 Apr 2014 à 04:43
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 13 Apr 2014 à 04:43
Related:
- Copy data from current work to another
- How to copy data from one excel sheet to another - Guide
- How to copy data to multiple worksheets in Excel - Guide
- Excel move data from one sheet to another - Guide
- Tmobile data check - Guide
- Export data from excel - Guide
5 responses
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
17 Mar 2014 à 00:52
17 Mar 2014 à 00:52
quote
first open the workbook and activate the sheet and then define IRow (an not before)
lRow = Range("A1").End(xlDown).Row
Range("A2:D" & lRow).Copy
Workbooks.Open "C:\MyFiles\Test.xls" 'Change file path to match yours
unquote
first open the workbook and activate the sheet and then define IRow (an not before)
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
3 Apr 2014 à 00:17
3 Apr 2014 à 00:17
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 15 March 2014
Status
Member
Last seen
13 April 2014
13 Apr 2014 à 03:42
13 Apr 2014 à 03:42
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 .
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
13 Apr 2014 à 04:43
13 Apr 2014 à 04:43
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