Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Specify a cell in next page from a specified cell on page being wo

I need to use a specifed cell for a formula so that the curser will high
light a specified cell on the next sheet of a work book. I know that I could
easily use the sheet tab and mouse but the sheets are for alot of number
entry's. It would just simplify things for the user to just keep entering the
numbers.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Specify a cell in next page from a specified cell on page being wo


This code will activate sheet2 A1 from sheet1 A1 after a value is
entered and the user moves to the next cell (tabs or presses enter) if
the the value is not blank. You can modify the sheet names and cell
ranges to suit your needs. Let me know if this doesn't work.

You will need to place this code in the appropriate worksheet module.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1"
If Target.Value = "" Then
Else
Sheets("Sheet2").Activate
Sheets("Sheet2").Range("A1").Select
End If
End If

End Sub


--
jwhite100
------------------------------------------------------------------------
jwhite100's Profile: http://www.excelforum.com/member.php...o&userid=27913
View this thread: http://www.excelforum.com/showthread...hreadid=474009

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Specify a cell in next page from a specified cell on page bein

Thank you for responding to my query. I pasted the VBA code, but I could not
get it to work properly as needed. I already have some code on the specified
sheets and they are working as needed. Maybe I need to modify this new code
to the previous code. Here is the code that I have:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$19" Then
Range("D7").Select
End If
If Target.Address = "$D$19" Then
Range("F7").Select
End If
If Target.Address = "$F$19" Then
Range("H7").Select
End If
If Target.Address = "$H$19" Then
Range("J7").Select
End If
If Target.Address = "$J$19" Then
Range("B21").Select
End If
If Target.Address = "$B$33" Then
Range("D21").Select
End If
If Target.Address = "$D$33" Then
Range("F21").Select
End If
If Target.Address = "$F$33" Then
Range("H21").Select
End If
If Target.Address = "$H$33" Then
Range("J21").Select
End If
End Sub

Any More help would be greatly appreciated.
Thanks "Jeff D."



"jwhite100" wrote:


This code will activate sheet2 A1 from sheet1 A1 after a value is
entered and the user moves to the next cell (tabs or presses enter) if
the the value is not blank. You can modify the sheet names and cell
ranges to suit your needs. Let me know if this doesn't work.

You will need to place this code in the appropriate worksheet module.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1"
If Target.Value = "" Then
Else
Sheets("Sheet2").Activate
Sheets("Sheet2").Range("A1").Select
End If
End If

End Sub


--
jwhite100
------------------------------------------------------------------------
jwhite100's Profile: http://www.excelforum.com/member.php...o&userid=27913
View this thread: http://www.excelforum.com/showthread...hreadid=474009


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
How to display current page number in any cell of that page. Laljeet Excel Discussion (Misc queries) 8 February 2nd 08 01:31 AM
change cell size from page to page on the same worksheet Danny Excel Worksheet Functions 2 December 15th 05 06:20 PM
sheet tabs as page number and in a cell page of pages? [email protected] Excel Discussion (Misc queries) 0 November 22nd 05 02:43 PM
cell on one page equals cell on another page in excel? toswald Excel Worksheet Functions 1 September 26th 05 08:52 PM
How do I move the data in one cell on a page to another page/cell Excell Beginner Help Excel Discussion (Misc queries) 2 September 14th 05 09:10 PM


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

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"