Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Accessing previous page

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Accessing previous page



"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Previous page:

Worksheets(ActiveSheet.Index - 1)


or activesheet.previous.select


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Accessing previous page

Thanks, it seems too simply, but works great for what I want.
James



"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3-Color Scale Vlookup for Current Month/Previous/Pre-Previous NeoFax Excel Discussion (Misc queries) 2 January 8th 10 07:04 PM
Borders from previous page showing up at top of new page Melanie Wagner Excel Discussion (Misc queries) 1 October 17th 07 03:54 AM
Reference previous page Lori Switzer Excel Worksheet Functions 2 September 23rd 06 07:49 PM
continue page numbers from previous worksheet tom Excel Discussion (Misc queries) 1 June 23rd 06 04:22 PM
Running Total from previous page Vanna Excel Worksheet Functions 6 March 5th 06 08:32 AM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"