Loop thru Mult Ranges and save as valus

Grimm127

Board Regular
Joined
Aug 17, 2011
Messages
132
Hello Gurus!

I am a VBAmature and in need of your genius, lol.


I have a set of various ranges that I need to set to save as values. My current set up as follows. However the problem is that I can't paste values in multiple ranges.

So I need something that loops through each range and saves those ranges as values. How can I do this?

'PNL1
Range("A6:AC8,A10:AC11,A13:AC13,A16:AC19,A21:AC22,A25:AC28,A30:AC30,A298:AC300,A302:AC303,A305:AC305,A308:AC311,A313:AC314,A317:AC320,A322:AC322").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
 
Changing and resetting calculation mode applies to the Areas approach as well.

What are in the intermediate cells? If they are not formulas, just include them in the .Value = .Value.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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