Cursor Home (equivalent Of CTRL (Home) To Move)
Jul 31, 2009Does anyone know the equivalent of CTRL (Home) to move the cursor to the a1 position in VBA? I have tried Range(cells(1,1),cells(1,1)).select but with no success
View 3 RepliesDoes anyone know the equivalent of CTRL (Home) to move the cursor to the a1 position in VBA? I have tried Range(cells(1,1),cells(1,1)).select but with no success
View 3 RepliesI have several spread sheets I sort daily, now suddenly today when I hit Ctrl / home it wont go home and I can not sort the sheet.
View 7 Replies View RelatedDoing a search function where the cursor is on a row some where (unknown).
I would like to move the cursor to the first column of the spreadsheet.
I have been searching Excel Help for a code that will allow me to program the Ctrl + Home function.
Specifically, I have a macro that leaves the selected cell too far down on the spreadsheet. Instead of making the user scroll up or press the Ctrl + Home keys, I want to write a code at the end of my existing macro.
I am writing a sports schedule or fixture list. The home teams are in column B and the away teams are in column C.
I want to prevent any team having 3 consecutive home matches. Is there any way a formula can be used to alert me if there are 3 consecutive home matches.
I have used the PMT function but this gives me the total to pay per month.
I want to know what the repayments would be and also allow me to add in each one of the periods and extra repayment option.
So if in the year I wanted to pay an extra $100 per month, I would put $100 next to each period as in a particular period(s) I might not have to put in there but want to predict what the amount owing on the house is.
Is this possible or is this too complicated.
On the computers in my office they have a My Documents folder that is in the directory C:Data. There is also a My Documents folder in the usual windows location C:Documents and Settings etc. Is there a function that will give me the path of the folder that is on the desktop? The macro will be run on computers with the folder in different locations which is why I need to look it up.
View 5 Replies View RelatedI am working on a budget spreadsheet and want to find a formula that will automatically tell me what my take home pay is depending on the yearly salary and see if covers my expenses (linked to another spreadsheet). It will be easier to budget my expenses depending on my salary. My attempts to create IF and = haven't worked.
View 2 Replies View RelatedI created a custom tab withthe UI editor into my personal sheet which is set as startup and I want to have this tab automaticly shown when it is opened.
So when the workbook is opened I would like the show the tab Andre rather than the home tab.
I have an older laptop with XP and 2007 Office / Excel this works, with the new laptop doesn't work?
basically - I open a new spreadsheet - blank - just basic
I used to be able to click the data tab, then click From Access, then enter my URL to an access database on my website and BAM my data would populate in cell A1
with VISTA - I get the same error over and over again, tried a different XP machine, no problem? What gives?
error box states: Microsoft Office Excel cannot access the file [url]
there are several possible reasons.
the file name or path does not exist
the file is being used
workbook has the same name
I'm starting to really hate VISTA after about 3hrs with this new laptop!
Found the wonderful code here at Ozgrid and would like to change the return to home selection.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("d4:Ad104"), Target) Is Nothing Then
Int_color = Target.Interior.ColorIndex
Select Case Int_color
Case xlNone
'Question, what does "xlNone" do?
Target.Interior.ColorIndex = 3
Target.Font.ColorIndex = 3
Target.Value = "true"
'Range("A1").Select - would like to change this to move the selection to
'the present row clicked, column c. If I click on G9 the selection returns
'to C9.
Case Else
Target.Interior.ColorIndex = xlNone
Target.Value = "false"
End Select
End If
End Sub
I have a category field, and a money spent field in a table.
Category Money spent
1 $12
2 $19
2 $122
1 $5
4 $65
5 $34
5 $12
3 $26
Category 1: $17
Category 2: $$$
and so on..
So I'm looking for a formula that returns information to one cell. A formula that looks if in 'this' column you see the category code '1' for example, then return to me the money spent for ALL the 1's. It should return $17...
The table above is small just for demo purpose, my table has 8 category codes at the moment and the number of rows can be between 15 and 50 I guess... it's a monthly break down.
I would like to see how much is spent in total for each category...
In addition if possible, can this be done for two separate tables... We are two people, and I have two table recording expenditure.
So the formula would need to, from these tables:
Person A Person B
Category Money spent Category Money spent
1 $12 2 $14
2 $192 4 $25
2 $122 4 $65
1 $5 1 $32
4 $65 3 $75
5 $34 3 $85
5 $12 2 $12
3 $26 2 $11
Category 1: $49
Category 2: $$$
and so on...
Look up in both tables, search the two category columns for category '1' for example, then return all the $'s added together... So for Category 1 now it would show $49...
When using 2013 Excel in the Home tab, line 1 is not visible. Using the File tab will show line one, but the Home title bar is unavailable. Toggling back and forth is not efficient. No one in this office has ever seen an Excel program not display a full page under the title bar in the Home tab.
View 1 Replies View RelatedI recently moved to Central America and now am working on models that are either in $ or in the local currency (Q). I do not want to change my default currency value in the regional settings of the control panel because it is more convenient for me to stay in $ but it is a pain everytime I want to set a worksheet in Q and not in $.
So, I am wondering how I can change the default values in the currency drop-down list on the Home toolbar under Numbers in Excel 2010.
Currently, it gives me the change to apply the following currencies:
- $ English (US)
- £ English (UK)
- € Euro (€ 123)
- ¥ Chinese (PRC)
- fr. French (Switzerland)
Instead of either the £, ¥ or fr., I would like to have listed the Q, my other frequently used currency.
I know this has been discussed a number of times, but here is my problem
I have three charts in my workbook. I want to attach a macro so that when the chart is clicked it returns to Sheet - Home. I have using the following:
worksheets("Home").activate. But after I protect each chart and the workbook, and save and exit. When I reload the Workbook it has forgotten the assigned macros and nothing happens.
I need a macro that switches the Ribbon to the "Home" tab.
View 2 Replies View RelatedI have a database of pricing codes made up of several sheets. One of the sheets has a table of discounts. Each genre of product is assigned a code that determines the discount. My pricing code sheets include the discount codes. I want to use the discount code in the pricing code tables to call on the discount table and populate a cell in the pricing table with the discount multiplier. So...
In Sheet1, Column A has the discount code for whatever product line is in the row. In Sheet14 are all the discount codes and all their respective discounts. I want to take the code and search for it in Sheet14 and then place it in column F for each row of Sheet1. So the code in A1 is "abc". I want to find the row in Sheet14 column A with code "abc" and take the value in column L of that row (the discount multiplier) and place that value in F1. I would have every row of the pricing code tables doing the same thing.
The discount multipliers change often so I want to be able to just drop a new table into Sheet14 with the updated multipliers and have all my other sheets reflect the change without having to manually enter the new multipliers.
CTRL+END not move to the last cell on the worksheet. How to make to move to the last cell?
View 9 Replies View RelatedWhen I copy a cell with CTRL-C and paste elsewhere, a small clipboard pop-up appears to give paste options. The pop-up is the size of an average 'starter' cell. I find it a nuisance as it always covers a cell I might want to paste into, but I cannot see that cell anymore because of the pop-up. How can I get rid of the pop-up?
View 2 Replies View Relatedhow I can move the cursor position on all visible worksheets to A1 before a workbook is saved.
View 9 Replies View Relatedthe code to get my cursor to move down 1 row or cell without it actually referencing the chosen cell.
Is there a code to make the Cursor Movement direction to be set to move Left ?
View 2 Replies View RelatedI want a macro which will move cursor to right cell of the same row when the user will press enter in a particular sheet of particular workbook. I have tried the ToolsoptionsEditmove selection after enter , but this applies to excel as a whole and needs to be change every time if another worksheet or workbook is used and thus creating difficulty.
Can this be done through a macro as I need the cursor to move to right cell only for a particular worksheet and for a particular workbook?
I have some code that unhides the next worksheet when the value 'next' is selected at the bottom of the sheet being completed.
I would like to add some code so that the new sheet is opened and the curser is placed in the first cell that needs to be completed (E5).
I am trying to position the cursor in a spreadsheet column based on the data within the column but am struggling with the software to do it.
What I have is:
(a) A column (A:A) containing a mix of up to 500 numbers (1 to 3 digit) and a few text entries (1 to 6 char). These form the basis of a movement log where say 100 different drivers (each with unique identity) are logged in and out, so there will be duplicates.
(b) A number of other columns logging task/times etc but the one I am interested in (B:B), contains a tick (martlet font "a") to denote the driver has departed.
What I want to do when a driver departs, is have a quick way of finding (from the top down) the row containing the drivers number (A:A) where the driver logged in, but has not yet departed (so I can tick him out!).
So from the top: find the first row (in A:A) matching a specific number/string, where B:B is also blank and position the cursor at B"x").
I have imagined a "button" with data entry at the top of the sheet being the easiest physical way of doing it but am open to offers.
Can the Cursor (or cell?) be highlighted as well, because this is not always easy to see in bright light.
I want play a trick on someone and make a button move out of the way when they try to click on it. I think that this code is from VB6.0:
Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.Move Rnd(100) * 4000, Rnd(100) * 4000, 1000, 1000
End Sub
In Excel, this code results in Run-time error '438': "Object doesn't support this property or method."
Is there a way to "move" a button in Excel VBA?
I was thinking of how the Worksheet_Change(ByVal Target As Range) macro can be used to paste values instead of formula when the user uses Ctrl-C and Ctrl-V. Instead of assigning a macro to a command button for user to activate.
Suppose I have a worksheet where the range ("D7:D56") is where I would want the user to paste his values in it.
I have to factor in the possibility that these values have formulas attached to them, and that the user is not tech-savvy enough to know about the "paste special --> values" functionality of excel, and chooses to use the Ctrl-C, Ctrl-V method instead.
What then appears are ####### which might alarm the user.
Neither would we want the user to press a button (which we can assign the xlpastevalues macro as an alternative) as that adds an extra step for the user. There is also a chance the user might not use the button, or overlooked it.
Is it possible to use the Worksheet_Change(ByVal Target As Range) macro, or sth similar, to paste values instead of formula when user uses Ctrl-C and Ctrl-V?
I work with a sheet with active columns B thru I, which get daily numeric entries. The problem is that I have to enter data in columns H & I first, then go back to B thru G. how to force the cursor to jump to column B when I tab out of I into J?
View 5 Replies View RelatedI have written code for a userform, and after I enter in valid data, the cursor will not move on to then next field. I cannot even click on another field with my mouse. I changed some of the code around to add validation to it, and now I am unable to move on once a valid entry has been made. If the user enters in the value "9999" the userform works just fine, it only freezes when they attempt to enter in an employee number. I've tried a few different ways to resolve this, but nothing is working. This is the code I have written.
[Code] .....
Is there a way to make it so when i hit enter my cursor moves 7 cells instead of 1?
View 9 Replies View Related