ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula Macro Question (https://www.excelbanter.com/excel-discussion-misc-queries/132109-formula-macro-question.html)

MikeD1224

Formula Macro Question
 
I have the following formula:

=VLookup(A2,Schedule!B:H,7,False)

In my workbook I have 60 worksheets and I need this formula to be entered
into every single worksheet in cell A1. Is there a macro to do this?

This would save me lots of time. Any help would be great. Thanks,

Mike

Pete_UK

Formula Macro Question
 
You could do it without a macro by grouping all the sheets - but be
very careful.

Select the cell with the formula in then right-click on the sheet tab
and click Select All Sheets. Then click in the formula bar as if to
edit the formula and press Enter. Then right-click the sheet tab and
click Ungroup sheets.

You should now find the formula has been applied to every sheet.

Hope this helps.

Pete

On Feb 23, 6:58 pm, MikeD1224
wrote:
I have the following formula:

=VLookup(A2,Schedule!B:H,7,False)

In my workbook I have 60 worksheets and I need this formula to be entered
into every single worksheet in cell A1. Is there a macro to do this?

This would save me lots of time. Any help would be great. Thanks,

Mike





All times are GMT +1. The time now is 03:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com