Macro virgin

Colin Bishop

New Member
Joined
Jun 11, 2011
Messages
2
i have inherited a workbook for calculating and recording wages. The module that extractes information from a worksheet and transfers it to another worksheet has a formula =SELECT("hings") if I change hings to smith an 'error at cell x' box appears. What am I doing wrong? This is the complete macro.

=WORKBOOK.SELECT("Summary","Summary")
=SELECT("hings")
=COPY()
=SELECT("r8c10")
=WORKBOOK.SELECT("hings","hings")
=SELECT("xhings")
=PASTE.SPECIAL(3,1,FALSE,FALSE)
=DELETE.NAME("xhings")
=SELECT.END(4)
=DEFINE.NAME("xhings")
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the board.

I think "hings" is a defined name or range, whereas "smith" isn't, that's why I believe it's failing.

You need to look at how your workbook is set up and defined
 
Upvote 0
Thanks,

To explain further, The name hings is one of a list of employees names on a worksheet, what I want to do is add another name and alter the macro to see it or change a redundant employees name to the new name and alter the macro to see it.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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