Simulate Pressing Ctrl+Alt+Delete And Then Clicking Lock Computer

Jul 25, 2007

Is it possible to lock the computer using VBA. i.e Simulate pressing Ctrl+Alt+Delete and then clicking Lock Computer so once this has been clicked the user will have to enter the password to unlock. I thought that using the SendKeys would be a start but this does nothing.

SendKeys "^%{DELETE}"

View 8 Replies


Run Procedure When Pressing Caps Lock Key

Jun 20, 2009

I have a userform contains a label control .. what I want is showing that label when Caps Lock is on and hide it when Caps Lock is off.

View 14 Replies View Related

Excel 2010 :: Paste Options No Longer Showing Up When Clicking CTRL

Jul 30, 2014

I'm currently using Excel 2010. Before, when ctrl+v'ing a cell that wasn't a number (but was, for example, a function), I could immediately after press ctrl, bring up a paste menu, and press v to paste as a value.

So before, if I had a range of cells that were functions (say something simple like "=D3/E3" on F3 and dragged down), I could do the following to paste the range into another worksheet:

1. Ctrl+shift+down to select the entire range
2. Ctrl+C
3. Ctrl+V into a different worksheet (at which point everything shows up as either "#DIV/0!" or as the wrong number, depending on cells to the left)
4. Ctrl (brings up the paste menu)
5. V (selects "values")
6. The entire range is now pasted as values, and not as functions

Recently, however, clicking on "ctrl" after pasting brings up no paste menu. I haven't changed any settings. I will lovingly serenade the first (and second, and third) man (or woman) that figure out what settings I must change or what I must do differently.

View 1 Replies View Related

Track Computer Lock And Unlock Time In Excel?

Jun 26, 2014

I want to make break tracker. When i press Windows + L Or CTRL + ALT + DELETE (Lock computer) Automatically lock time upload in my excel sheet. Then when i unlock pc then automatically unlock time will upload in my excel sheet.

View 1 Replies View Related

Macro To Paste Values Instead Of Formula When User Uses Ctrl-C And Ctrl-V (no Command Button)

Jun 10, 2013

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?

View 6 Replies View Related

Excel 2007 :: Cannot Delete Column By Right Clicking

Dec 3, 2013

In any open (new or existing) workbook (Excel 2007), I cannot delete a column by right clicking the column header and highlighting the entire column. The "delete" word is greyed out and not selectable. I CAN however still delete a column by going to the "Cells" toolbar, then "Delete" pulldown menu, then "Delete Sheet Columns". Right clicking the column header is much simpler and easier.

BTW, I can still delete rows by both methods of right clicking on the row header and by going to the Cells toolbar.

View 5 Replies View Related

Clicking Cancel On InputBox To Delete Newly Created Sheet

Mar 4, 2010

I created with code to copy a template, hide that template, and pop up a box to rename the copy, I noticed she clicked "Cancel" on the InputBox. When she did, she received an error (400). What I would like to do is when the "Cancel" button is clicked, the newly created copy would be deleted. Is this possible?

Here is the code for my full "Create New Project" sheet procedure:

Sub CreateNewProject()
'This code will copy the Project Data sheet, hide it and then
'rename the new copy to the MSA number. Code also prompts user for
'MSA Number and fills that in on the form.
Dim RenameSheet As String
Dim oSheet As Worksheet
With Sheets("Project Data")
.Visible = -1
.Copy After:=Sheets("FHWA Quarterly Report")
End With...............

View 9 Replies View Related

Simulate Drag Or Autofill

Jan 3, 2009

i need a macro that will simulate the little corner crosshair that you drag to fill in and increment formulas. i need to fill down on sheet 2, columns a thru m a number of rows equal to sheet 1,column b, count -1.

View 9 Replies View Related

How To Simulate Variance In Excel

Apr 8, 2013

How to create like a random number generator or something. So like +.09 is 57% and -1 is 43% and for it to randomly generate like 100 numbers, so that I could graph it later.

View 5 Replies View Related

Simulate Click Through Frames

Jun 17, 2008

I think this is going to be the right method for me. I need to simulate a click on a link (because the link calls a javascript), though the link is buried behind frames.

Here's the code I am sure works for a normal 1 frame page.

appIE.Document.all(0).contentWindow.Document.all("Some Link").Click
Here is the frame setup I have to work with. Mind you the frames I need to target are not labeled so I'd have to use the numbers.

<FRAME> This is where my link is hiding

View 9 Replies View Related

Simulate A Mouse Click

Jul 29, 2006

I have a log that stores a list of different files in the first column. All of these files are worksheet hyperlinks (ie: =HYPERLINK("\USSS000010_PUBLIC5_COMMON15_PPA20066-032G6-032G.xls","06-032G")). If I click on any of these cells the file will open.

I am trying to open certain files from the list using VBA.

My question is Is there any way to simulate a mouse click, on the cell containing the hyperlink, using VBA?

View 9 Replies View Related

Code To Simulate A Double Click

Sep 19, 2007

I'm trying to find the code which will have the effect of a double click.

I want to use event code so that when I click on a cell once it will cause a drop-down in the cell (the cell is formatted with wrapped text).

View 9 Replies View Related

Macro To Simulate Mouse Movement To Stay Idle?

Jan 29, 2014

Does someome know a macro to simulate mouse movement to stay idle to prevent communcator (Lync) from turning off? I need this to run for 2 hours only.

View 1 Replies View Related

Force Cells To Recalculate (simulate Double Click)

May 4, 2007

I have an interesting question for everybody here. Let me see how to best explain it.

I start in the code making sure column Action Plan completion has a value in it. Copying in the issue modified column if neccesary.

'Back fill last modified
'I need to start with the first data row (3) and the action plan completion column
Let intcurrentrow = 3
Let intcurrentcol = intactionplancompletion
Do Until intcurrentrow > intmaxrow
If Cells(intcurrentrow, intcurrentcol).Value = "" Then
Let Cells(intcurrentrow, intcurrentcol).Value = Cells(intcurrentrow, intissuemodified).Value
'Need to ensure that everything is formatted as a date
Let Cells(intcurrentrow, intcurrentcol).NumberFormat = "m/d/yy h:mm AM/PM"
End If
Let intcurrentrow = intcurrentrow + 1

Later, I place this formula in a given cell.

=If(I9="Open-Remediated",M9-K9, If(I9="Closed-Remediated and Validated",M9-K9,"" ))

The info I copied above is placed into the column K.

When I run the macro, the cell formula outputs "#value".

However, if I go double-click then enter the cell calculates just fine.

I've tried excels overall recalculate function, but that doesn't change this.

Does anybody know how to simulate a double-click on a cell?

View 6 Replies View Related

Record Values When Pressing F9?

Apr 21, 2013

how to record a value of a cell whenever F9 is pressed. The cell I want to record the value of is cell D101, which is a sum function of the previous 100 rows. I'd like to figure out a way to run 1,000 trials or so and record the value in cell D101 each time.

Some more details, if needed: I'm simulating a dice game (craps). There are 2 dice, each dice is based off of RANDBETWEEN (1,6) then the dice are added in a different column to achieve the roll. The payout is then based on whatever number was rolled. I'm summing the payout (D101) and would like to run this trial 1,000 times.

View 3 Replies View Related

VBA For To Avoid Pressing F2 Then Enter

Nov 10, 2009

I have a formulas in Sheet1 linked to other sheets, but I have only formula and there are no sheets ( eg: in sheet 1 A1 =Data!A1) where as there is no sheet called Data. I have a macro to import this sheets from a different file.

The problem I am facing is, after importing the sheets, the formula still shows #REF but if I do double click the cell or press F2 and then "Enter" the value appears. I have about 1200 formulas in this sheets.

View 2 Replies View Related

Go Back To Col A Pressing Enter?

Jun 23, 2012

Once I reach Column G and I press enter, instead of going to Col I, How can I get Excel to back back to Col A, but on the next row?

View 5 Replies View Related

Mouse Scroll Not Available After Pressing F2

May 15, 2008

I recently upgraded to Excel 2007. I use Excel with "Allow editing directly in cells" unchecked. In previous versions, pressing F2 would not prevent me from using the mouse scroll, but in Excel 2007 I am unable to mouse scroll which makes it bothersome. Is there a setting somewhere that can enable mouse scroll after pressing F2?

this is a work product and we can't use VBA.

View 3 Replies View Related

How To Launch At A Specified Time Without Someone Pressing A Button

Nov 30, 2007

Is it possible to launch Excel at a specified time without someone pressing a button?

I'm working on a network which has disabled Scheduled Tasks. The purpose of this request is to launch Excel in the early hours of the day so that a macro would run and update the data from a data source. The macro works brilliantly, but I without anyone in the office at 2am to open Excel, I need to find a way to launch it automatically.

Also, I don't have permissions to install programs or add-ins from the Internet. It doesn't leave me with many options, but I'm just wondering if there's a trick that has so far eluded me.

View 11 Replies View Related

Determining Where Cursor Goes After Pressing Enter

Aug 6, 2013

I have set the default in Excel to move across to the next cell after I press Enter. This is fine for most workbooks but I have a particular workbook in which it would be preferable (save keystrokes) for the cursor to move down one cell. Is it possible to have one action as the default but another for a particular workbook?

View 7 Replies View Related

Button With VB To Avoid Pressing Several Keys At Once

Mar 19, 2009

I would like to design a button (with macros),so that users of my excel page do not need to press CONTROL+SHIFT+F1+ALT,which needs to be pressed on my firm to get the new data from a central server.

View 3 Replies View Related

Pressing Cancel Continues The Macro

Apr 3, 2007

the title should read... pressing cancel in inputbox, continues the macro... In theory, pressing the cancel button should stop the macros, but it continues as if pressing ok button...

View 3 Replies View Related

How To Stop Running The Code When Pressing Backspace

Jun 22, 2009

I have the following code to add dash mark to TextBox1 value depending on some condtions (mentioned in the code), the code works perfectly, but when we use Backspace Key to clear some charactors it is conflicting with the code running when changing Textbox1 value.

View 11 Replies View Related

Making Cells Uneditable After Pressing Save

Jan 27, 2012

I have a workbook with a data entry sheet.

The name of the data entry sheet is 'Enter Data Here', and my employees will be filling in information in columns A to U.

I want to be able to accomplish 2 things.

1) When an employee opens the file, he/she is not able to edit any non-blank cells in columns A to U.
2) Employee is able to add data to a new row in columns A to U, and is able to edit this until they press 'SAVE'

Is this possible?

View 9 Replies View Related

Disable Save Except When Pressing Button Or Using Modifier?

Apr 15, 2014

I have a button in a template file, that when clicked, saves the file as a new file with file name based on data in certain cells.

I want to disable the ability to save the file with the Save icon or Ctrl-S, but the button still needs to be able to save it (the button is technically doing a Save As, so no problem there). But, I, as the administrator of the template, need to somehow be able to save updates to the template file. Can this be accomplished by coding Save to work when used with a secret key combination that only I know (I can put it in password-protected VB code)?

Then, as if that's not tricky enough, the trickier part is that once the file is saved as the new file (no longer the template) - re-enable the Save button and Ctrl-S so the user can then save it as many times as they want.

View 3 Replies View Related

Formula Remains As Text Even After Pressing Enter

Sep 24, 2007

I have a simple formula in cell A2


But it will not calculate. I have gone to Tools - Options - Calculation to see if calculation is set to Manual but it is Automatic. Is there another setting or have I exceeded some limit?

View 9 Replies View Related

Cursor To Stay On The Cell After Pressing Enter

Jun 23, 2007

Imagine you have only one column - column A. In column A you have 500,000 + rows with text like the following:

act noun
act verb
/dev/ null
Dwight Schrute

and your goal is to figure out a way to simultaneously transform the above rows into:


I know I can use Filter and filter out characters like &'!/; but that takes too long because I have a lot of lists to go through with thousands of entries. There must be a macro that will close spaces between words when only one space exists, but eliminate every word if 2 or more spaces exist between words - as well as eliminate unwanted characters like the ones I described above. I know I could use substitute and eliminate the spaces between words =substitute(a1," ","") but then I'd have to filter each and every instance of unwanted character.

View 6 Replies View Related

Using Ctrl+M As Shortcut

Nov 6, 2008

i have tried using the letter M as a shortcut key (because it is to activate a "Move" function) but unfortunately it doesn't work. I gather from this that not all of the keys are available as shortcut keys presumably because they already have function.

Is there a way around this? and/or is there a list somewhere of the available shortcut keys?

View 13 Replies View Related

CTRL + TAB Not Working

Feb 27, 2007

the keyboard shortcut to switch between workbooks in the application seems to have stopped working on my boss' machine.

View 4 Replies View Related

File With Multiple Charts Always Gives ONE Invalid Reference Error Until Pressing F9

May 22, 2012

I have a file with data in one sheet (unfortunately I cannot share the file because of confidential data..), and two sheets with both 9-11 charts in them.

The charts are all filled simply with a dynamic range from the datasheet, so that Last Year and all months from this year with data in them are always in there.

The problem: When opening either of the graph sheets, the (familiar?) error pops up: "A formula in this worksheet contains one or more invalid references. Verify that your formulas contain a valid path, workbook, range name and cell reference."

One of the graphs has an error and only shows one point of data in it. But only until I press F9, and then the chart is repaired and functions perfectly like all the others!

I have tried lots of things, including checking all source ranges, deleting all graph names etc. and then repaired it so it would work again. The only thing that happened, is that the same error now pops up for another graph in the sheet. Still, when you press F9, the graph functions again!

View 6 Replies View Related

Copyrights 2005-15, All rights reserved