Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Returning to active sheet

Hi,
I have a series of worksheets which store data on a separate sheet
"Results".
Data from (e.g.) Sheet A is moved to A1 in Results, then a small macro
checks to see if cell contains data and if not moves down to the next empty
cell. When it finds the empty cell it pastes the data.
How do I then move back to Sheet A? I can't use the actual name because the
user may have been on Sheet B, C etc.
Any help gratefully received!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Returning to active sheet

If you are writing the code, you should know the name of sheet A. You would
use the sheet name to return to it. Maybe if you post the code you are
using, a better solution could be offered.


"David" wrote in message
...
Hi,
I have a series of worksheets which store data on a separate sheet
"Results".
Data from (e.g.) Sheet A is moved to A1 in Results, then a small macro
checks to see if cell contains data and if not moves down to the next
empty cell. When it finds the empty cell it pastes the data.
How do I then move back to Sheet A? I can't use the actual name because
the user may have been on Sheet B, C etc.
Any help gratefully received!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Returning to active sheet

Sorry, perhaps I wasn't clear enough - I used Sheet A as an example as the
user could be coming from any one of a number of sheets and I need to return
to whichever sheet the user was on - hence sheet name cannot be used.


"JLGWhiz" wrote in message
...
If you are writing the code, you should know the name of sheet A. You
would use the sheet name to return to it. Maybe if you post the code you
are using, a better solution could be offered.


"David" wrote in message
...
Hi,
I have a series of worksheets which store data on a separate sheet
"Results".
Data from (e.g.) Sheet A is moved to A1 in Results, then a small macro
checks to see if cell contains data and if not moves down to the next
empty cell. When it finds the empty cell it pastes the data.
How do I then move back to Sheet A? I can't use the actual name because
the user may have been on Sheet B, C etc.
Any help gratefully received!





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Returning to active sheet

Fixed it - I used the worksheets index number to return to Sheet 1, and made
sure that was the only sheet visible.
Thanks JLGWhiz for your quick reply, by the way.


"David" wrote in message
...
Sorry, perhaps I wasn't clear enough - I used Sheet A as an example as the
user could be coming from any one of a number of sheets and I need to
return to whichever sheet the user was on - hence sheet name cannot be
used.


"JLGWhiz" wrote in message
...
If you are writing the code, you should know the name of sheet A. You
would use the sheet name to return to it. Maybe if you post the code you
are using, a better solution could be offered.


"David" wrote in message
...
Hi,
I have a series of worksheets which store data on a separate sheet
"Results".
Data from (e.g.) Sheet A is moved to A1 in Results, then a small macro
checks to see if cell contains data and if not moves down to the next
empty cell. When it finds the empty cell it pastes the data.
How do I then move back to Sheet A? I can't use the actual name because
the user may have been on Sheet B, C etc.
Any help gratefully received!







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
Returning value of active cell Sergio Excel Worksheet Functions 3 May 10th 23 03:42 AM
Code for Returning to Last Active Worksheet Please Don Guillett Excel Programming 2 December 5th 06 06:11 PM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Excel Programming 3 January 23rd 06 09:57 PM
Trouble turning off sheet updating and returning to original active cell Giznawz Excel Programming 1 October 1st 05 10:24 PM
Returning active cell Ted Metro Excel Worksheet Functions 2 May 3rd 05 02:47 PM


All times are GMT +1. The time now is 02:01 AM.

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

About Us

"It's about Microsoft Excel"