Shift Key Down Arrow

Apr 22, 2006

1:
Does a code exist to do Shift Key_Arrow Right, Arrow Down and then select that range to Copy?

I know the arrows codes but was told by someone no code can ever exist for a Shift Key.

I need to select a range after a "Search For" but the Range is not determined by the actual Cell ranges.

My Code for Arrow keys are:


'Selection.Offset(0, 1).Select '*Right*
'Selection.Offset(0, -1).Select '*Left*
'Selection.Offset(-1, 0).Select '*Up*
'Selection.Offset(1, 0).Select '*Down*
'Selection.Offset(3, 0).Select '*Down * 3 Cells

2:
What is the macro code to insert more than 1 row ?

The code I use to insert 1 Row is :


Selection.EntireRow.Insert

Sometimes I need to insert 25 rows.

View 9 Replies


ADVERTISEMENT

VBA Equivalent For Shift-Arrow Keys

Nov 7, 2007

Does anyone know the VBA equivalent to using the Shift-Arrow keys on the keyboard? I am wanting a macro to do this for me. Specifically I am wanting to use Shift-Arrow Right.

View 9 Replies View Related

Lookup Wage Calculations (calculate Pay Per Shift Dependant On The Type Of Shift)

Dec 1, 2009

I have the basics set up, but need to work out how to make it calculate my pay per shift dependant on the type of shift i have worked.

I have attached a screen shot of the current page,

In it i have currently used validation drop boxes for the location and worked columns with tables just to one side of the sheet.

The shift pay is the column i am having trouble with.

I would like it to change dependant on what is selected in the 'worked' column.
For most things it should just display basic plus holiday, however if supervisor is selcted in the work column, it should display basic plus holiday plus supervisor.

View 3 Replies View Related

Calculate Pay For Shift Work With Different Rates Based On Shift Hours

Apr 11, 2008

a person works for certain hours and get paid according to the hours worked either by day or by night or a mix of both. Day payment is $8 when worked between 08:00 and 19:59 , night payment is $12 when worked between 20:00 and 07:59. The excel cell are formatted as datetime with yyyy-mm-dd hh:mm , the function works fine in getting the time information and checking whether the whole work is all day or all night , yet the if-then-else statements for calculation seems to be wrong!!

examples:

start = 2008-01-01 09:15 , end = 2008-01-01 11:40 , all day as it is between 08:00 and 20:00 and cost = 8/hr = 19.333

start = 2008-01-03 21:05 , end = 2008-01-04 02:05 , all night as it is between 20:00 and 08:00 and cost = 12/hr = 60.000

start = 2008-02-02 19:00 , end = 2008-02-02 20:05 , cost = 9.000 as 1 hour day = 8.000 plus 5minutes night = 1.000

Function prod(st As Date, en As Date) As Double
Dim shour As Integer
Dim smin As Integer
Dim ehour As Integer
Dim emin As Integer
Dim stod As String
Dim etod As String
pday = 8
pnight = 12
shour = Hour(st)
smin = Minute(st) + shour * 60
If (shour >= 8 & shour < 20) Then
stod = "day"
Else
stod = "night"
End If
ehour = Hour(en)
emin = Minute(en) + ehour * 60
If (ehour >= 8 & ehour < 20) Then.................

View 8 Replies View Related

Start Shift And An End Shift

Nov 18, 2009

I have a Start Shift and an End Shift time,

Start Shift = 2009/11/10 09:27:06 (GMT-6:0)
End Shift Time= 2009/11/10 15:13:03 (GMT-6:0)
eg. Total Time = 5.3 hrs

I would like to take if from this format, and calculate the total time difference. Sometimes the GMT codes may be -5:0 if that means anything. For the cell "Total Time" I only need it to have a decimal format.

View 12 Replies View Related

Add Arrow To Userform

Oct 27, 2006

probably this is easy but i can not find it. i have created an userform and would like to add an arrow (<----->) on it to accentuate something. How can i add an simple arrow or line on a userform

View 3 Replies View Related

Input Msg To Appear In The Other Area Where I Put The Arrow

Jan 19, 2007

In the attached file and when I click on Name or ID (B5 or B6) the input msg will appear on the same cell using the validation rule.

Actually I need any input msg to appear in the other area where i put the arrow. I tried to move the input msg to that Irea and it worked great each time i click on B5 or B6 but after closing the file and opening it later.. they will go back to the same place.

View 14 Replies View Related

Simulating The ALT+DOWN ARROW Shortcut

Mar 31, 2009

Simulating the ALT+DOWN ARROW shortcut. I came up with the hereunder code.

View 4 Replies View Related

Using Arrow Keys As Input VBA

Aug 5, 2013

I am trying to create the game of snake in VBA as practice, but I cannot find how to use the arrow keys as input. From what I have read it seems that it may not be possible, but how to change the value of a variable every time an arrow key is hit, post how to do so.

View 2 Replies View Related

Run Macro When Right Arrow Key Pressed

Apr 1, 2009

I have Sheet2 containing Supplier data in 2 columns - SupplierTAxCode and SupplierName (unsorted)

Sheet1 contains the Expenses section.

In Sheet1, column E6 to E1000, after inputting each SupplierTAxCode and pressing the RIGHT ARROW key, I would like to automatically get the SupplierName in column F6 to F1000 - from the corresponding data in Sheet2

In the event that the input in any of the cells in E6 to E1000 does not exist in SupplierTAxCode in Sheet2, would it be possible at the same time, to change the background color of the adjacent cell (SupplierName) in column F6 to F1000 at the same time - as a reminder to add those to the Supplier data in Sheet2 at a later date.

I could use Index Match and Conditional Formatting, but am concerned about the file sizes.

View 9 Replies View Related

Replicate Arrow Keys

Dec 16, 2009

I understand the end(x1Down), but i think I am missing something. I just want to go to the next cell left, right or Up, Down from whatever cell is currently selected. How do I replicate a 1 cell move as an arrow key would do?

View 9 Replies View Related

Cannot Scroll With Arrow Keys

Jul 18, 2006

For some reason, when i use my arrow keys to move from cell to cell it now only scrolls my screen around....What did i do, and how do i change it back? I find it sad that i can write code and this stumped me.

View 3 Replies View Related

Display Up/Down Arrow In Cell

Oct 27, 2006

Im looking to add arrow in cells. I.e. if the value of B2 is greater than A2, the cell C2 should display an arrow pointing upwards. If the value is less the arrow should point downwards.

View 2 Replies View Related

Arrow Keys To Move The Box

Jul 5, 2007

When every I click in a excel box and try to use my arrow keys to move the box example: A3 to A4. All it does is move the page up and down or across. Is there some type of setting on that is not letting me do this. It use to allow me to. Until another employee got on it. I can not start over becouse I have months of work on this book.

View 2 Replies View Related

Add Shape (Arrow) To Worksheet

Apr 18, 2008

This one has me baffled: I recorded a macro to add a shape to a worksheet, very simple. When I try and run it it comes up with a "The specified value is out of range" error. I've searched the net and it seems to come up where the file has been converted from an earlier version of excel (which this file has) but I haven't been able to find a work around for it. The relevant code is

With ActiveSheet
.Shapes.AddShape(msoShapeLeftArrow, 205.5, 312#, 144#, 23.25).Select
End With

View 3 Replies View Related

Add Scroll Arrow To ActiveX Combobox?

Mar 20, 2013

I have an application were I would like to use an Active X combo box instead of a regular dropdown list. The list contains 64 items and the text becomes very small in a standard dropdown list. Using an Active X Combo Box allows me to enlarge the text for easier viewing but with 64 items the list tends to run off the sheet. Is their a switch or some other way (scrolling) to make it more viewer friendly?

View 5 Replies View Related

Click The Down Arrow To See Validation List

Sep 1, 2008

I'm not sure this is even possible, but I have a long cell that has data validation. Right now, you have to move the mouse all the way over to click on the arrow to see the list. Is there a way (programmatically or otherwise) to make the down arrow show the list when you're in that cell??

View 10 Replies View Related

Disabling Arrow Keys For InputBox

Jan 8, 2009

I noticed the arrow keys will move the active cell while I have an inputbox active. This will be an issue for my users, I need them to key in data only.

Is there a command that will disable the arrow keys while the users enter the requested data?

View 10 Replies View Related

Can Click Little Filter Arrow Without A Mouse?

Jul 18, 2013

In excel when you have filters on for all columns there is a little bitty square box with a little down arrow (like an upside down triangle) in the lower right corner of every cell in the top row (the header row) and I can't find a way to select one of those little itty bitty down arrows without using a mouse - -

Is there any way to select one of those little down arrows in the little filter box icon thingy with the keyboard?? I can't figure it out.

I just want to select the little arrow so that the filter dialog box opens - I am trying to create a keyboard macro that will use the 'BEGINS WITH' macro but when i record the macro it uses the same word for the "BEGINS WITH" parameter every time and I want it to use the word in the current clipboard - can't seem to write that.

View 3 Replies View Related

Copy- Find- Arrow To Right- And Paste

Mar 15, 2007

I have two spreadsheets, A & B. In spreadsheet A, user will input a contract number and values for the contract. The user inputs the contract number in cell D4. I have linked this cell to cell B1 of spreadsheet B.

I want Excel to

-copy values from spreadsheet A

-then go to spreadsheet B and find the value of B1(which is the contract number entered in cell D4 of spreadsheet A)

- arrow over 14 columns

- then paste

here's the code i have so far. No matter what contract I input in cell D4 of spreadsheet A (when i step through the code) excel always takes me to cell C10 of spreadsheet B!?!?!

note: the code is in a module in spreadsheet A

Sub find_contract()
'
' find_contract Macro
' Macro recorded 03/15/2007 by b944553

View 9 Replies View Related

Trigger A Macro On Arrow Keys

Apr 24, 2007

I'm creating a small Excel RPG where the player moves the around a blank worksheet with the walls of a maze appearing as you approach them (think dark corridors, you can see only 1 cell in all directions around you).

The players current location is shown by excel setting the activecell to the players location. Currently I have four buttons labeled Up, Down, Left and Right which the player clicks to move in the desired direction.

The testers were frequently missing the four movement buttons and this would put the activecell outside of the maze next to one of the buttons. They'd have to move it back manually.

I would like for the players to move around using the arrow keys to use the activecell, as you would normally move around a sheet... but before each movement there is a procedure that check IF the player can move in the desired direction or not (cell borders used for walls), and then once they've moved there are more procedures to check for monsters treasure chests etc.

How can I make the arrow keys trigger the macros that the Up, Down, Left and Right buttons currently trigger, and not just move the activecell?

View 9 Replies View Related

Press Down Arrow Instead Send Ctrl+Alt

Dec 24, 2008

How to send by holding Ctrl+Alt and i need to press Down Arrow

I tryed with

Sub test()
Application.SendKeys "^+({DOWN})"
End Sub

View 9 Replies View Related

Red Line Going Across The Spreadsheet While Using The Arrow Keys

Dec 31, 2008

if it's possible to have a red line going across the spreadsheet while using the arrow keys it follows you down through all cells. And is there a vba coding that someone has ready written.

View 9 Replies View Related

Code Hides The Arrow In Column

Mar 11, 2009

I have a sheet that is autofiltered. Once a user autofilters columns 20, I would like to hide the arrow for that column so the user can no longer autofilter using that column. When I run the code - it hides the arrow in column 20, but then it unfilters all the data . . . can I hide the arrow in column 20 but keep the data as it was filtered before the code ran.

Dim c As Range
Dim i As Integer
i = Cells(2, 1).End(xlToRight).Column
Application.ScreenUpdating = False

For Each c In Range(Cells(2, 1), Cells(1, i))
If c.Column = 20 Then
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
End If
Next
End Sub

View 9 Replies View Related

Validation Drop-down Arrow Not Showing

Nov 2, 2006

I have a spreadsheet with a number of columns regulated by Data Validation.

They are linked to lists with DV, which normally generates a nice drop-down box when you click on the cells.

I inserted a column into the spreadsheet, and now DV doesn't generate a drop-box anymore! In any of the columns! The "In-cell dropdown" box is still checked in my Data Validation screen, and the cells are still bound by validation to only conform to the lists.

Can anyone think of why these boxes would have disappeared? I've shut down Excel and re-opened the file in case it was a momentary glitch. I've deleted the inserted column... In short, I've tried everything I can think of.

Even if I remove Data Validation from the columns, and re-instate it with the "In-cell dropdown" box checked, I still don't get my drop-boxes.

I would be totally happy to send my complete file to anyone who wants it (although it's a bit big, as I have to send the directory structure if you don't want to get an error, about 1 MB), but anyhow - I'm reasonably desparate to get the drop-boxes back in.

View 9 Replies View Related

Data Validation Drop Down Arrow

Jun 7, 2007

I am currently working on a spread sheet that has a lot of data validation drop down lists. They were all working fine but now none of the drop down arrows are showing up.

View 3 Replies View Related

Arrow Keys Scroll Screen

May 23, 2008

I am relatively new to Excel 2007 and my arrow keys do not navigate cell by cell. When I press the right or left arrow keys, my entire screen shifts to the right or left but the cursor STAYS in the cell where it was. Likewise, when I press the up or down arrow keys the screen shifts up or down but again, the cursor remains where it was. Is there an option somewhere that I need to change?

View 3 Replies View Related

Type Mismatch Error On Arrow Pointed Below

Mar 11, 2009

I am getting a mismatch error on arrow pointed below. whenever a entered is then deleted in the cells i.e. H50 and H51. I've included the workbook here just in case.
Is there a way to ignore error message so that it does not to show up??

View 2 Replies View Related

Formula Using Arrow Icons To Show Trend

Nov 16, 2009

I'm trying to create a formula where I can show the trend of two values from one month to the next that shows wheather the results went up or down in a positive or negetive value. For example:

If I have a transfer % of 18% in October and November MTD is at 17% - the arrow would then reflect downward showing in green, as the lower percentage is better. but I need the arrow to show upward in Red if say the value for November MTD was 19% instead.

I tried conditional formatting and attempted an "If" formula. I must not have all the information to create the formula as it errors out on me. I can create it if only looking to reflect one arrow...

=if(c3<b3,"")

View 6 Replies View Related

Autofilter Blue Arrow On Wrong Column

Jan 25, 2008

I am running into a roadblock, I have added an auto filter to my spread sheet, however now when I use it the filters I select are not showing up on the column that is being filtered. For some reason they are 2 -10 colums over, a totally seprate column it is kinda weird.

View 9 Replies View Related







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