Page numbers

Ian Mac

MrExcel MVP
Joined
Feb 20, 2002
Messages
1,174
All,

Is there a way of countins the number of sheets that have a certain name on a assigning a Page (Sheet) number to a particular cell on each.

i.e. I have 12 sheets (current) they are all called AgentA Mon, AgentB Mon, AgentC Mon etc. (the AgentA,b,c are real names of people). This is repeated for each day of the week.
What I'd like is for Excel to count the number of sheets and on AgentA put A1= "page 1" B1= "of 12".
the cells don't actually NEED the 'page' or 'of' in them.

I'd like this to be done viewing the sheets left to right in the workbook.

Also, if it's any help every day had the SAME people and ALWAY the same order.

Anyone??
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
On 2002-04-05 05:55, Jay Petrulis wrote:
Hi Ian,

Application.CalculateFull

is the VBA equivalent of Ctrl+Alt+F9.

Regards,
Jay

Sorry I was a bit hasty, I don't have the option for CalculateFull only Calculate.
 
Upvote 0
Err, sorry, VBA is not part of my expertise (hence why I'll go to any lengths to work in Excel)

But I'm pretty sure that XL97 VBA doesn't have a ctrl+alt+F9 equivalent. Short of Application.SendKeys of course.
 
Upvote 0
Major apologies. I have Excel 2000 at home and Excel 97 at work. Excel 97 doesn't have the .CalculateFull

Try,

SendKeys "%^{F9}", True

for Excel 97.

Bye,
Jay
 
Upvote 0
On 2002-04-05 08:37, Jay Petrulis wrote:
Major apologies. I have Excel 2000 at home and Excel 97 at work. Excel 97 doesn't have the .CalculateFull

Try,

SendKeys "%^{F9}", True

Thanks works a treat, I also have 2000 and xp at home and 97 at work, ITS BEEN A LOT OF YEARS SINCE 97 HAS MY COMPANY NOT MADE THE PROFIT NEEDED TO UPGRADE!
for Excel 97.

Bye,
Jay
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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