Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2014, 09:20 AM
wiredgecko wiredgecko is offline moving to to different sheet Windows 7 64bit moving to to different sheet Office 2013
Novice
moving to to different sheet
 
Join Date: Dec 2014
Posts: 1
wiredgecko is on a distinguished road
Default moving to to different sheet

hello, i'm hoping someone can assist me. for starters i am very new and inexperience in VBA.

scenario is:
i have four sheets, for simplicity lets call sheet 1 "names", sheet 2 "bob", sheet 3 "tom" and sheet 4 "sue".


on sheet "names" i have a drop list with the names and depending on which name is chosen the pointer will be moved to A1 of the sheet which matches the name chosen.

thanks
Reply With Quote
  #2  
Old 12-04-2014, 01:31 PM
charlesdh charlesdh is offline moving to to different sheet Windows 7 32bit moving to to different sheet Office 2010 32bit
Expert
 
Join Date: Apr 2014
Location: Mississippi
Posts: 382
charlesdh is on a distinguished road
Default

Hi,

This is a worksheet event code that may work when the data in "A1" changes.
Paste this in the worksheet code module for the sheet that you named as "Names".

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Mysheet As String
If Target.Address = "$A$1" Then
    Mysheet = Target.Text
    Sheets(Mysheet).Activate
    Range("A1").Select
End If

End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
moving to to different sheet Create a New Sheet from Existing Sheet with Specific Columns malam Excel Programming 1 10-17-2014 10:01 PM
moving to to different sheet Is it possible to take a row on sheet 1 and transfer the info to sheet 2 by rows on conditions. rogcar75 Excel 3 08-28-2014 05:21 PM
moving to to different sheet Moving cell content without moving borders & shading? unittwentyfive Excel 1 10-25-2013 12:56 PM
Moving Duplicate records to new sheet Woolstar Excel Programming 5 01-16-2012 01:46 AM
moving to to different sheet Moving formula range multiple cells when moving sum over one cell FraserKitchell Excel 4 02-26-2010 10:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft