MACRO HELP

HAWKS2002

New Member
Joined
Aug 30, 2002
Messages
1
I have recorded a macro where I have taking certain data from one sheet and formatting it in a different format on another sheet. I used the "select current region" to select the data to be transferred to the second sheet(For example A1:H200). When I update the original data sheet the and the macro only picks up the range A1:H200 when in fact I want the macro to pick up the extra data. (The range will constantly change). How do I modify the macro so that it will pick up all the relevant data automatically.

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi HAWKS2002,

Welcome to the board. :smile:

Is the data that you are transferring from sheet1 to sheet2 the only data on the sheet? If so, consider using the 'UsedRange' property rather than a specified range such as A1:H200.

HTH
 
Upvote 0

Forum statistics

Threads
1,223,520
Messages
6,172,811
Members
452,481
Latest member
Najwan

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