Hello.
I am new to VBA.
I am trying to make a macro that copies information from a worksheet from workbook A then opens a new workbook and copies the information as value only(no formulas)
Unfortunately I get stuck in the stage of pasting the values.
Attached is the relevant code of the macro.
Please note: the macro gets stuck in the following line “Worksheets(1).Range("a1").PasteSpecial xlPasteValues”
[/I]
Here is the code:
wkb.Activate
Sheets("swimmer").Select
ActiveSheet.Copy
Set wkb_new = Workbooks.Add
wkb_new.Worksheets(1).Activate
wkb_new.Worksheets(1).Select
Worksheets(1).Range("a1").PasteSpecial xlPasteValues
Your help is appreciated.
Have a nice day
Bookmarks