View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default Accessing previous page

Previous page:

Worksheets(ActiveSheet.Index - 1)

Last page:

Worksheet(Worksheets.Count)

--

Vasant



"James Agostinho" wrote in message
ink.net...
Hello NG,
I'm having a problem accessing the previous page from code.
By that I mean every couple of days or once a week I add a page, through a
macro, and then I need to go to the previous page (different name every
time) and copy everything in the E column and then return to the last page
(also different name every time) and paste the copied numbers in Column I.

I know how to get the page count but I don't know how to use the count

after
I get it.
Any suggestions please.
TIA
James