Excel Macro to Copy a cell from multiple sheets into a Single sheet based on a value

prakashv23

New Member
Joined
Aug 16, 2013
Messages
9
Hi All,

I am new here and am trying to learn VBA, need assistance on a excel report I am creating.
I have an excel document with multiple excel sheets(sheet1, sheet2...etc), now every sheet contains a cell "total".
Now I want to copy the row containing "total" from all the sheets into another sheet called "report".
 
same code is working in my file correct i have already checked before post this code here

if you are facing problem then pls upload your file any sharing site and paste link here
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
same code is working in my file correct i have already checked before post this code here

if you are facing problem then pls upload your file any sharing site and paste link here

Thanks for the response kevatarvind. If it works on you're end ...then it should on mine too.
I am checking the excel doc for any formatting that might be causing an issue.
I would try to validate and keep you posted. In case I run out of options ....sure will upload a file for your assistance.

Thanks again and have a nice day :)
 
Upvote 0
It was a formatting issue.
I was able to fix that, i tried this on multiple sheets and its working fine now.

Thanks a lot kevatarvind.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top