Select Cell In A Different Worksheet And Scroll?

Feb 22, 2012

I'm using the following code. It works fine when it comes to selecting the cell. However, I'm not sure how to bring the view of the worksheet such that the selected cell is in the middle of the sheet. I've the data horizontally laid out from column A to column BM. So, when someone makes a change in Sheet2 I need to point to the corresponding column in Sheet1 such that it is in the view.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim CellName As String
CellName = Range("A1").Value

[Code]....

View 1 Replies


ADVERTISEMENT

Control Scroll Bars: Remove The Scroll Bars From Just One Worksheet But When Unticked

Jan 13, 2007

In the menu via TOOLS-->OPTIONS-->VIEW I am trying to remove the scroll bars from just one worksheet but when unticked, this option affects all of the worksheets in my workbook. Is there a way to just nail this selection down to one sheet via properties?

View 2 Replies View Related

User Scroll Through Range And Then Select

Mar 4, 2008

******** ******************** ************************************************************************>Microsoft Excel - Rod Extract Test Master.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutCR1=CRCSCTCUCV1Loan NumberCollect Tax EscCollect Oth EscPay Int on EscRE Tax Monthly Const2304100830NNY$0.003304100830NNN$0.00Borrower,Master,ARM [HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name boxPLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

What I need to have happen is that the user decides what duplicate row to delete. The reason that there is a duplicate is that Row 1 has something different from Row 2. In my example above, CU1 is different from CU2. This is what caused this loan number from CR to be duplicated. I need to delete at my discretion one of the 2 rows.

What I would like is to have the user Select Range CR1:CR2 (this is relative in the sheet), run the macro, have it select the 2 row range, compare (relative) B1:B2 are they equal, compare C1:C2, are they equal, etc through the rest of the range. I would like the screen to update and stop with the range highlighted that is and and a MsgBox to click ok to Continue, then continue through the rest of the range. Once it has finished cheking the range, can the user use the mouse to select the range from CR that needs to be deleted, have the appropriate range selected and then the MsgBox Is this the range you want to delete? Y/N........................

View 9 Replies View Related

Worksheet Datatable Won't Scroll

May 18, 2011

I have a datatable with data from 2010 and 2011. The worksheet will not scroll at all. It looks like it is scrolling at the side where the scroll bar is but the worksheet does not move. I can move the tab up or down but the page/worksheet doesn't move at all. If I activate the filter and select only the year 2011 in the drop down box for the Date column, it scrolls fine. But if I check "All Dates" or just "2010" from the drop down box on the Date column the page/worksheet will not scroll. I can select a certain month from the drop down box for 2010 and it will show the data (about 25 rows) but I cannot scroll. When I have just 2011 selected from the filter it all works fine. I'm not real swift with Excel. It was working fine until today.

View 3 Replies View Related

Scroll Down/Across Worksheet Doesn't Move

Aug 10, 2006

I have two basic questions regarding the Excel program/UI

I'm currently using Excel 2000, One annoying thing I find with this version is the way the screen doesn't follow along with my scrolling. ie: when I use the vertical scroll bar on the main window, it only updates once I release... not like a typical window which follows the movements of the scroll curser. Is this typical for later versions?

I would update this program just for this feature alone!

Also, a final question.... Does anyone know if there are any plans to update the handheld (pocket pc) version of Excel? The factory installed program is incredibly limited.

View 6 Replies View Related

Worksheet Scrolling With Scroll Wheel Is Broken

Oct 22, 2008

I have a workbook with 8 sheets, one of which is the "main" sheet that holds all of my user data for logins at my job (I'm in IT). There are about 4300 users and 23 fields for each user, so there are 4300 rows in the sheet. Other sheets in the book are important, but not as much as this one.

The workbook has a total of over 1000 lines of VBA code right now, as I'm building a tool that finds users, adds users, modifies users, etc. (I know, Access would be smarter for this, but for some reason they want me to use an xls). Most of this code works with the sheet that I'm having the problem on.

This ONE sheet has seemed to disable the functionality of the scroll wheel, and I can't use Page Up or Page Down while in the sheet either. Also, if I select cells with VBA (Sheet2.Range(<range>).Select), it will select the cell, but it will not draw focus to that cell on screen (the sheet will not move at all). The other 7 sheets in the workbook have all regular functionality.

This just started happening a couple days ago, and I've been building the code for about a week, so I'm wondering if it's something in the code...?

Does anyone have any idea what might cause this?

View 14 Replies View Related

Reduce Worksheet Scroll Bar Length/Height

Sep 2, 2006

I used to have cells in the extremes of my worksheet filled which resulted in the scroll bars being stretched very thin. Since then, I am only using the top-left part of the worksheet but it is difficult to scroll through since the scroll bars are still stretched. How do I bring them back to normal?

View 5 Replies View Related

Select A Cell In Another Worksheet

Feb 27, 2009

If I want to select a cell in another worksheet I'm currectly doing this:

View 3 Replies View Related

Select Worksheet Using Cell Value

Nov 5, 2007

how do you select a worksheet using a cell value
in cell a1 i have a random number we shal say it is 57
in cell b1 the same we shall say it is 8
i need to select worksheet a1 and cell b1
sheet57!8
sheet(a1!b1)

View 9 Replies View Related

Select Cell On Different Worksheet

Dec 5, 2007

i know this is pretty lame but why do i get an error message when i use...

Sheets("Sheet2").Select
Range("A1").Select

the error message is run time error 1004, application -defined or object-defined error.

i want to activate cell A1 so that i can use it as a location for referencing another cell using offset.

View 6 Replies View Related

.Select Worksheet From Value In Cell On Another Sheet (VBA)

May 13, 2006

I seem to running into dead ends with each previous post concerning this similar idea, despite brave efforts of kind people . . .

So here is another thought: As the title suggests, can one help me with code that would take the value in (say) Sheet1A1 (Say Harry) and use that value to search for a sheet with that name (Harry) in the same workbook and then link to that sheet, cell A1 (Harry!A1)?

The other posts are here, should you want to know, but they differ as far as the linking method goes:

Post 1, Title: Newly created Tab Names placed as Hyperlink on Content Sheet
Newly created Tab Names placed as Hyperlink on Content Sheet

Post 2, Title: Automatically redirect hyperlink when cell value changes
Newly created Tab Names placed as Hyperlink on Content Sheet

View 9 Replies View Related

Select A Worksheet Based On Value Of Cell

Sep 17, 2006

I am trying to write a macro, in VBA, that would select the proper worksheet, based on the value of a cell.

View 3 Replies View Related

Worksheet Listbox Causing Crash With Mouse Wheel Scroll

Aug 21, 2008

I am having problems with an Excel workbook I am working on. I have a sheet that has a number of controls added to the top of it. Two of these controls are listboxes. My problem is, if I am in the listbox navigating through it, and I accidently move the Mouse Wheel, Excel crashes and I get the usual, "Send Error Report" form.

I have seen that there are other people having this problem and that there are a number of solutions out there but my problem is a bit different. I have a few forms with listboxes on them, and while mouse wheel scrolling doesn't work, it certainly doesn't crash Excel. It only seems to happen when I have a control permanently added to the sheet. Is there any event handler for mouse wheel scrolls or anyway to disable them through VB?

View 2 Replies View Related

How To Find A STRING In A Worksheet And Select The Cell Containing It

Mar 25, 2009

I want to know how to find certain String and select the cell it on finding the String.

View 10 Replies View Related

Select Worksheet Of Another Workbook Whose Name Resides In A Cell

Sep 18, 2007

I need to select a worksheet from another workbook.

I want use a cell contains which contains a date that corresponds to the worksheet's name in the other workbook.

View 4 Replies View Related

VBA Cell Select Button To Jump Around To Standard Locations In Each Worksheet

Sep 25, 2009

I'm using a button in my sheet to jump around to standard locations in each worksheet. Generally in the active worksheet I have these three buttons working perfectly.

However I have one button that takes you from the worksheet into the dashboard. The problem is if you had scrolled the dashboard around you may be put at your last place. I want the screen to jump to and center on R1C1

View 4 Replies View Related

Restricted Scroll Areas Won't Scroll

Nov 26, 2007

I am using the toolbox/ properties method to restrict the scroll area in the sheets of my workbook. However, for some sheets when i keep the right hand arrow pressed, the screen will not scroll to the last column. (i.e. the screen display will not move with the selected cell box)

View 2 Replies View Related

How Do I Either Scroll Through Each Name In The List Box And Activate The "current" Worksheet

Mar 25, 2007

I've written a program that list all the occurences of a given name in a specific cell from all worksheets in the active workbook. The list is placed in a listbox and the first listing is selected with ListBox1.Selected(0) = True. Additionally the worksheet of the first listing is activated.

My question is now how do I either scroll through each name in the list box and activate the "current" worksheet. I assume that I'll need to address scrolling up/dowm and clicking of any particular name on the list.

View 9 Replies View Related

Scroll To Next Open Cell

Jan 1, 2010

I'd like to edit this code so that I am taken to the first available open cell on a worksheet.

I have been using the following

View 2 Replies View Related

Scroll Through Each Cell Containing The Name Of A Workbook

Jan 4, 2007

I have a spreadsheet which contains about 800 rows. Each row contains a column with the name of a different workbook. I need to scroll through each cell containing the name of a workbook and open that workbook, extract two specific cell contents from each workbook opened, and paste that information into the two cells next to the original cell containing the workbook name.

Example:

Summary Workbook column C: contains names of workbooks.
For each workbook name, I need to open the respective workbook.
Then in the first tab of the workbook I need to extract the information in E6 and K7 and copy that information back into the summary workbook in the two cell to the right of column C.

View 11 Replies View Related

Automatically Scroll Down When Cell Is Selected

Jun 8, 2009

I have a report with 5-8 sections on it. What I am trying to do is scroll down the worksheet when the first cell in each section is selected so that the user can see the whole section. I tried a something like this

View 3 Replies View Related

Automatically Scroll To Top Left Cell A1

Jun 3, 2008

Private Sub Workbook_Open()
Dim ws As Worksheet
Application. ScreenUpdating = False
For Each ws In Worksheets
ws.Select
ActiveWindow.Zoom = 75
ActiveWindow.ScrollIntoView Left:=0, Top:=0, Width:=100, Height:=100
ws. Cells(1, 1).Select
Next ws
Worksheets("Summary Form").Select
Application.ScreenUpdating = True
End Sub

This works dandy, except for one thing - it will select Cell (1,1) in each sheet, but when you go there, the view is still where it was last time. (Given the nature of the sheet, usually scrolled down to the end.) How do I make sure that the view is at the top of the page? So that A1 is not only selected, but at the upper left corner of the page? Is there a "Scroll to top" type of function?

View 2 Replies View Related

Macro To Scroll To A Row When A Keyword In The Row Is Typed In A Cell

May 10, 2014

I have a list of drugs which possibly could increase to thousands in rows. I will need a macro that can scroll down to a particular row when the text in that row has been entered.

Assuming I have LOTEMP in A5000 , I would want a macro to scroll to row 5000 when the word , " LOTEMP" is typed in cell , say B2.

View 2 Replies View Related

Scroll Over A Cell That Can Display The Name From The Row Along With The Date From The Column

Nov 10, 2008

Is there a function/routine/etc. that when I scroll over a cell that I can display the name from the row along with the date from the column. (I know I can do it if I click the cell.)

Objective: Once I zero in on the desired cell I click it to schedule the person to work, count their hours, add to weekly and monthly totals, etc. etc. etc.

View 3 Replies View Related

Spin Button To Scroll Through Cell Links

Jan 2, 2009

I have a couple spin buttons in my worksheet.

What I want each one to do is to scroll through cell links.

For example, cell I4 has a lookup reference of "=LOOKUP(2^20,Sheet3!A:A)". What that does is get data from the very last line on sheet3 column A.

What I want the spin button to do is scroll through the lines in column A.

So if a user decided he/she did not want that data from column A, then all they would have to do is press up or down on the spin button, scrolling through other data that is in column A.

View 9 Replies View Related

Select Range In Worksheet Where Last Cell In Range Is Variable?

Jan 27, 2012

I am trying to write code to select a range in a worksheet where the last cell in the range is variable.

Sub DataTest()
Dim LastColumn As Integer
Dim LastRow As Long
Dim LastCell As range

[Code].....

View 8 Replies View Related

Select Next Control / Cell On Worksheet After Enter In Control

Jan 9, 2008

Within the ComboBox properties, is there anyway to control after "enter" his hit, you move to the right instead of down (similar to the edit under Tools/Options)?

View 9 Replies View Related

Create Scroll Bar With Lists In It And Disply The Selected In The Next Cell

Oct 6, 2006

I need to create a scroll list where user can scroll the contents and see and select a perticular Item and whe he does it (selected) should display on the next cell

View 2 Replies View Related

Scroll Down Column And Insert Total In Blank Cell

May 22, 2007

May seem straightforward, but not to me. I need some code to scroll down column A and insert the sum total of A2:A16 in B17, and repeat this everytime a blank cell appears in colum B, continuing down to the end of the worksheet.

View 5 Replies View Related

Scroll To Cell Containing Value Input In Other Cell

Dec 20, 2013

I've got a large file containing hundreds of rows of data. Groups of these rows have a header identifying the project they are relevant to (P1, P2, P3, etc.). I'd like to freeze column A & row 1 such that when a user enters "P3" (arbitrary project header) into cell A1, excel automatically scrolls to the cell in which "P3" is located. Ex: if the header "P3" is located in cell X99, when "P3" is entered into cell A1, I want excel to automatically scroll to X99 such that X99 is visible where B2 would be visible in a new document (one cell to right and one cell below A1).

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved