Hi,
I'd like to remove all the linked values in a file and replace them by the actual values.
I've created this code:
More efficient would be if I can make a dynamic array with the number of sheets.
I.e:
Is there a way to create an array with size (Worksheets.Count - 1)
And then fill with 1, 2, 3, ... till (Worksheets.Count - 1)?
Any help would be greatly appreciated!!
I'd like to remove all the linked values in a file and replace them by the actual values.
I've created this code:
Code:
For j = 1 To tWBo.Worksheets.Count
Sheets(j).Select
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Next j
More efficient would be if I can make a dynamic array with the number of sheets.
I.e:
Code:
Sheets(Array(1,2,3,4,5)).copy
Is there a way to create an array with size (Worksheets.Count - 1)
And then fill with 1, 2, 3, ... till (Worksheets.Count - 1)?
Any help would be greatly appreciated!!