John Caines
Well-known Member
- Joined
- Aug 28, 2006
- Messages
- 1,155
- Office Version
- 2019
- Platform
- Windows
Hello All.
I recently posted on the board asking for help with a export data macro from 1 sheet to another,,
my original post was here;
http://www.mrexcel.com/forum/showthread.php?p=2652665#post2652665
Called "1 Export /Import VBA Macro-Cannot Do"
No one has answered (Accept me once ,,I think maybe it seemed a bit longwinded in how I explained it all, I have a habit of doing this sometimes, or maybe it was a bit confusing,, not sure really,, I did try to be thorough.
So now, i have an idea to try and make the macro evolve,, IE just post for a part of it,, and see if I can add to it.
So here goes.
Only 2 things;
==========
1. I am looking to export 1 cell of data from a sheet called "Data Import"
Cell is F27 (Merged & Centered to G29),,
This has a £ amount and I would like this to go into a sheet on the same workbook called "Daily Targets",, Cell J23
2. In the sheet "Data Import" I have a range of cells from K36:K275.
These have £ amounts. I would like this also to be exported to the sheet called "Daily Targets"
From Cells J24:J274.
Here's the twist though,,,,Some cells in the J24:J274 range have to be blank,
these cells are;
J44,J65,J86,J107,J128,J149,J170,J191,J212,J233,J254
Then I can assign this VBA code to a macro button and export it from the "Data Import Sheet" to the "Daily Targets sheet"
That's it,, if anybody can help me with the above,, so I can get this macro up and running,, I would be very very grateful.
I would then try to add the other criteria in my original post later down the line.
Here's a download link for the original sheet,,,
http://dl.dropbox.com/u/16052166/MrExcel-Target-Sheet.zip
or sheet only
http://dl.dropbox.com/u/16052166/Daily Targets-MrExcel.xlsm
(So please ignore Steps 2a/2b & 2c,,, unless you think you can incorporate these also into the macro ,, worth asking,,,my mum told me always to ask,,, if you don't ask,, maybe you don't ,,,,
many thanks for all your time
Best regards
John Caines
I recently posted on the board asking for help with a export data macro from 1 sheet to another,,
my original post was here;
http://www.mrexcel.com/forum/showthread.php?p=2652665#post2652665
Called "1 Export /Import VBA Macro-Cannot Do"
No one has answered (Accept me once ,,I think maybe it seemed a bit longwinded in how I explained it all, I have a habit of doing this sometimes, or maybe it was a bit confusing,, not sure really,, I did try to be thorough.
So now, i have an idea to try and make the macro evolve,, IE just post for a part of it,, and see if I can add to it.
So here goes.
Only 2 things;
==========
1. I am looking to export 1 cell of data from a sheet called "Data Import"
Cell is F27 (Merged & Centered to G29),,
This has a £ amount and I would like this to go into a sheet on the same workbook called "Daily Targets",, Cell J23
2. In the sheet "Data Import" I have a range of cells from K36:K275.
These have £ amounts. I would like this also to be exported to the sheet called "Daily Targets"
From Cells J24:J274.
Here's the twist though,,,,Some cells in the J24:J274 range have to be blank,
these cells are;
J44,J65,J86,J107,J128,J149,J170,J191,J212,J233,J254
Then I can assign this VBA code to a macro button and export it from the "Data Import Sheet" to the "Daily Targets sheet"
That's it,, if anybody can help me with the above,, so I can get this macro up and running,, I would be very very grateful.
I would then try to add the other criteria in my original post later down the line.
Here's a download link for the original sheet,,,
http://dl.dropbox.com/u/16052166/MrExcel-Target-Sheet.zip
or sheet only
http://dl.dropbox.com/u/16052166/Daily Targets-MrExcel.xlsm
(So please ignore Steps 2a/2b & 2c,,, unless you think you can incorporate these also into the macro ,, worth asking,,,my mum told me always to ask,,, if you don't ask,, maybe you don't ,,,,
many thanks for all your time
Best regards
John Caines