Need To Restrict Excel Shortcut Keys Commands To Run

May 2, 2013

I'm working on a VBA program prepared for accounting purpose. In that program i hide the excel ribbon by custom UI and also need to restrict excel's shortcut keys commands to run.

Can i do this with some VBA code.

View 2 Replies


ADVERTISEMENT

Excel 2007 :: Changing Shortcut Keys

Nov 23, 2011

I am using Excel 2007 and I would like to move one tab to right with "Ctrl+Tab" and move one tab to the left with "Ctrl+Shift+Tab".

Macros will not let me assign "Ctrl+Shift" keys (that I could see). How can I accomplish this?

I am trying to use these exact keys because my mouse is setup so that leaning the scroll wheel left or right moves left or right in my tabbed applications by executing a keyboard shortcut. This works in all my applications except excel where the shortcut keys are different.

View 6 Replies View Related

Run Macro Via Shortcut Keys

Feb 10, 2010

The following macro works when I run using Alt+F8+Enter
The macro also works when it is linked to a button on the worksheet.
However, it does not work when I try to use the keyboard shortcut Ctrl+Shift+P.
I've tried adding the shortcut key code into the macro -- still doesn't work.
I've tried changing the shortcut key to a different letter

View 8 Replies View Related

Disable All Shortcut Keys

Nov 20, 2007

I want to disable ALL shortcut key functions in my program. (i.e. if a user presses Ctrl+S it will NOT save, Ctrl+O will NOT open file, etc).

Of course I need this enabled again in something like workbook close for users to have this ability in other workbooks.

View 9 Replies View Related

Shortcut Keys To Average Dynamic Ranges

May 12, 2007

I would like to create a shortcut to averaging ranges. The ranges vary in size so I want to be able to click on a cell. Press Ctrl + W and automatically average the cells above it. I know how to get the short cuts, I just can't figure out the proper code to be able to average based on different sizes. Let me know if you need a better explanation./

View 3 Replies View Related

Disable Commands Ribbon Excel

Jun 23, 2012

I have the code that accompanies the attached spreadsheet model that locks the copy, paste, cut, double click and so on, with the right mouse button and shortcut keys, however, the toolbar excel these functions still remain active. How well I block access to the toolbar.

Desable_Ribbon.xlsm‎

View 14 Replies View Related

Different Commands When Pasting Excel To Word

Nov 26, 2011

What are the different commands for pasting data from excel to word? The code I have below pastes excel cell data to word as a picture. What if I want to paste excel cell data as embedded in the word document (I don't want it linked, just want the user to be able to edit it as an Excel sheet within the Word document). Thinking that I need to change the "DataType:=wdPasteText" part, but I don't know the correct syntax. Tried wdPaste but that did not work.

sub mysub()
Dim WdObj As Object, fname As String

fname = "myfilename"[code]....

View 9 Replies View Related

Issuing Word Commands From Excel Macro

Nov 20, 2006

I am trying to build a word document from an excel macro (with some success) and I am running into some issues with excel not understanding some of the word macro commands. An excellent example of this is when I am trying to insert a page break as seen in the below code snippet:

'open word and create a new document
Dim wdApp As Object
Set wdApp = CreateObject("Word.application")
wdApp.documents.Add

'put some text into the document
wdApp.Selection.typetext Text:="Document title"
wdApp.Selection.TypeParagraph
'insert a page break
wdApp.Selection.InsertBreak Type:=wdPageBreak

I know the insert break command works fine because I can get it to work within a word macro. When trying to get excel to run it in word is another story. I get the following error message:

run-time error '9118':
Parameter value was out of acctable range

Debug
wdPageBreak = empty

View 9 Replies View Related

Comparing Two Excel Sheets With Unique Keys

Aug 18, 2009

I need to compare the 2 sheets with respect to a unique key. Once the unique key matches , I need to compare 5 other columns of the two excel sheet.

Note : There could be missing rows in either of the excel , so its necessary that we look up 2nd sheet completely to find the unique key.

For Example : In sheet 1 : The unique key is preent in column B and in Sheet 2: The unique key is present in column I. Once we locate the rows in both the sheets with the unque key matching, we would need to comapre , columns A, C, E AND F of the sheet 1 with columns A,B,C AND D of sheet 2.

We need to report if all the data matches when the unique key is same.

View 6 Replies View Related

Excel 2010 :: Changing Legend Keys

Sep 18, 2012

is there a way to change the legend keys (aesthetically) in 2010?

I created a pie chart using a template but I don't want to keep the defualt legend keys. I tried changing the theme but it appears that the legend keys that come up are the same no matter what theme I change it to.

The Chart is a 3d Pie chart, I think that matters because the regular square legend keys show when the chart isn't 3D.

View 3 Replies View Related

Excel 2007 :: Arrow Keys Not Working In All Spreadsheets?

Dec 13, 2011

Arrow keys do not move from one cell to the next. They advance the page or panel view. No spreadsheet works correctly, (new or existing) and scroll lock is not set.

View 3 Replies View Related

Excel 2010 :: Vertical Arrow Keys Moving Out Of The Cell When Editing It

Aug 5, 2014

I am having this weird problem. The work laptop I received with excel 2010 does not allow me to use the vertical arrow keys when navigating through multiple lines when editing a cell. When editing the cell and I press the up or down arrow key, instead of moving to the next line within the cell, the cursor moves to the next cell. Is there a way / an option to have this fixed?

View 5 Replies View Related

How To Restrict Users From Logging More Than Once In Excel

Nov 7, 2011

I am doing an excel survey using forms. I want to restrict users from completing the survey more than once. i am using below code to input user login details in to a spreadsheet but i am not sure how to restrict them. I want a msgbox or some sort and then it closes the excel active workbook.

code to get username:
Sub GetName
Dim r As Range
Set r = Sheets("UserNames").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)

r.Value = Environ("username")
r.Offset(0, 1).Value = Date
r.Offset(0, 2).Value = Time

End Sub

After looking through various forums i found code to highlight duplicates but not sure how this can be modified to suit my need.

Code to find duplicates:
Sub Dups()

Application.ScreenUpdating = False
Sheets("UserNames").Range("A1:A500").Select
Rng = Selection.Rows.Count

[Code] .......

View 5 Replies View Related

Shortcut Key To Center Data In Excel

Dec 4, 2012

Any shortcut key to center data in the current cell? Or if I write a simple macro (not very good at writing them), what would the vba code to use to center text in whatever cell I am currently in?

View 1 Replies View Related

Excel VBA - Restrict Cell To Input Manual Entry

Apr 3, 2012

I am using the below code to enter the data in Cell "D" & "E" of the worksheet.

Dim a, b As Integer
a = WorksheetFunction.CountA(Sheet2.Range("C:C"))
ActiveWorkbook.Sheets("Retailing Data Sheet").Activate

'If Range("C" & a + 1).Value "" Then

[Code] .......

But, If someone wants to enter the data manually into the Cell "D" & "E" its allowing which i dont want.

It should be enter by using the form only...

View 5 Replies View Related

Restrict Excel Data Form Only For Appending New Record

Jan 11, 2007

Can I Restrict Excel Data Form only for appending new record. (No deletion allowed) and also Can I save Data Form in the File? Is there any way, whenever we open the file Data Form should popup?

View 9 Replies View Related

Excel 2010 :: Data Validation - Restrict Value User Can Enter Into A Cell

Oct 2, 2012

I'm using Excel 2010, and I need to restrict the value the user can enter into a cell (E9).

In cell E3 is the screen width (pixels). eg 6024
In cell E5 is the preferred width of a window. eg 450

The user, in cell E9, enters an x coordinate for which they prefer the top left corner of the window whose width is specified in E5.

If the value that the user enters in E9, added to the width entered in E5, exceeds the value of E3, (if E9+E5 > E3) then the value should be disregarded (window will be off right of screen) and the user re-enter.

I'm not familiar with the use of data validation, so I'm uncertain as to how to use it in this circumstance.

View 3 Replies View Related

Excel 2013 :: Hide And Unhide Ribbon Using Shortcut Key

Apr 14, 2014

i want to Hide & unhide ribbon of excel 2013 using shortcut key

View 3 Replies View Related

Excel 2010 :: Nth Character In A String - Parsing Shortcut?

Feb 1, 2013

I have an Excel sheet with lots of shortcuts in the first column. It's the entire shortcut, including the .lnk extension.

What I need to do is to be able to parse out the string to make the shortcut human readable when I create the hyperlink. I'm saving the output as HTML for a user to open these shortcuts. It's on an internal LAN & secure. Using various versions of Excel (2010, 2007 & 2003, predominately the first). Trying to make an ugly, 140+ character shortcut into a more readable form for web navigation purposes.

Up to a point, the shortcuts are similar:
a123meworkfolder1folder2folder3shortcut1.lnk
a123meworkfolder1folder4folder5shortcut1.lnk
a123meworkfolder1folder6folder7shortcut1.lnk
a123meworkfolder1folder8folder9shortcut1.lnk

but, later on, they vary from that point out.

a123meworkfolder1folder10folder10Afolder11shortcut1.lnk
a123meworkfolder1folder_12folder12Afolder12Bshortcut1.lnk

The strings are the same up to the 7th occurrence of the "" character, but after that, the foldernames start to change & the shortcut may be down a level (an extra folder) or more. Also, the lengths of the strings change as well, so I can only do positional parsing up to a point.

View 4 Replies View Related

Excel 2010 :: Keyboard Shortcut To Resize Whole Application?

Apr 3, 2014

I need to resize Excel pretty frequently - I need to size the whole Excel app tall and all the way to the left, taking up about a third of my screen - then maximize it - then back to tall and left, etc. I can do it by clicking the "Restore Down" icon in the top right corner, but I can't figure out how to do it using the keyboard.

I've tried Ctrl-F8, Ctrl-F9 and Ctrl-F10, but they all act on individual workbooks within the Excel application. I want to resize the whole Excel application. Does it exist?

View 3 Replies View Related

Excel Command Line Switch For (Read Only) Shortcut Not Working

Jul 31, 2014

I've recently created a macro which takes a .csv file and scrubs the data and dresses it up for a report. I've finally got it running without any problems and have added it individually to 5 different user accounts on my network as an add-in, but need a way to share it across a computer network without allowing others to edit the file.

The report is generated multiple times a day by the different users, none of whom are very computer literate (not that I am much better, myself), and the macro over-writes the old file each time. I've read that it's possible to simply create a shortcut to the file that automatically opens the spreadsheet in read-only format, which would be perfect for what I'm trying to do, but I haven't been able to get it to work so far.

My current shortcut pathway is similar to this:

"C:Program FilesMicrosoft OfficeOffice15EXCEL.EXE" /R "C:UsersBenDocumentsOT Master.xlsx"

On my computer at work (Windows 7) the shortcut simply opens the spreadsheet so that anyone can edit it, instead of as a read-only file. On my computer at home (I'm trying to experiment) (windows 8.1) it won't even let me save the shortcut, saying I need to provide administrator permission & then cutting to a window that says "access denied".

I won't have the pathway for the actual file I'm trying to create a shortcut for until tomorrow when I get back to work, but I've formatted it essentially the same, directing to the excel.exe file, running the switch "/R", and then directing it to the actual file location.

The ultimate goal is to have multiple people be able to view the file without locking out those who need to update it.

View 1 Replies View Related

Excel 2013 :: Column Filter Dropdown Keyboard Shortcut?

Jan 3, 2014

Is there a Column Filter Drop down Keyboard Shortcut for Excel 2013?

In Excel 2013, is there a keyboard shortcut to access the column filter drop down. For example, if you are on the cell A1, and you select Filter under the data menu and you want to filter column A without using your mouse, is there a keyboard shortcut to do this. I know Alt-A-C, clears the filters, but I want to know if there is a shortcut to access the filters in the column. In case my explanation isn't clear, I have included some screenshot pictures of the filter, before and after it is selected, to show what I am talking about, and what I am trying to accomplish without the mouse.

column filter.PNG
Filter Dropdown.PNG

View 3 Replies View Related

Excel 2007 :: Restrict Cell Input Based On Another Cell Value

Jan 22, 2013

I am working in both 2003 and 2007 Excel.

This is a simplified version of my worksheet:

I have two cells, A2 and B2. When I enter a numeric value into B2, I want it only allowed when certain text values are in A2. I.E.: Allow any value in B2, but only if A1 is either "SYDN or "ADEL".

Now using info found in an old post, I can achieve this with a combination of data validation and code:
=OR(A2="SYDN",A2="ADEL") for the validation and for the code:

[Code] ......

The only problem is I also need to reset B2 if A2 changes to invalid data as a result of some other input to that cell (A2). In other words if B2 is showing "1" already and A2 were to change from "SYDN" to say "LOND", then B2 needs to be cleared. If A2 changed to "ADEL" then it doesn't need to clear but it is ok if it does because it is fine to re-enter "1" into B2 again.

I have attempted to attach a sample worksheet : Xl0000003.xls‎

View 4 Replies View Related

VBA - How To Use Add-in Commands

May 12, 2012

How I use the Private Subs for Workbook_AddInInstall and Workbook_AddInUninstall with my addins and confirm it is nececessary to use them?

For 2 weeks, I have not been able to get my addins to activate and load into the AddIns tab. I think these missing Subs are why. Ironically, Every example on how to create addins never mention this step or it being necessary. I've even looked in Macros book and it does not mention anything about needing these subs in the Creating AddIns section so they will show up in the AddIns Tab.

How I can get my Addins in the tab and not the Quick Launch menu

View 8 Replies View Related

Commands And Toolbars Gone

Jan 30, 2008

I lost my command bar and tool bars (excel 97) all I have is the blue bar on top then the column letters. How do I restore them?

View 9 Replies View Related

MIN & MAX VBA Commands Not Seeming To Work

Dec 4, 2009

I would like someone to explain the reason why when the program is run, the maximum value in column S successfully is selected by being colored in pink, but the minimum in column R between those pink max's (indicated by the entire row outlined in red) is not the minimum.

In other words, look at the numbers in column R. Only the 14.08 rows are supposed to be boxed in red. I can't understand why the 30.08 and the 46.08 are boxed in red??? And puzzling to me is why the 46.08 near the top are boxed, yet the 46.08 near the bottom are not boxed.

View 7 Replies View Related

Executing Two Different Commands With Same Button

Dec 17, 2008

I just want to have a column sorted by Z-A order and then A-Z by the same button, I recorded 2 macros on 2 buttons and tried to join codes with "if, elseif".

View 6 Replies View Related

Open And Enter Commands

Feb 24, 2006

Is there any way that i could open and enter commands in ms dos
controlling from excel vba code?, like, say i wanted to change the current
directory in msdos from d: to c:, is there anyway that i could do it from
excel vba?

View 14 Replies View Related

Disabling All Ribbon Commands

Jan 9, 2014

I have a template sheet where the only thing the user need to do is fill in all the appropriate cells and the click the button that says SAVE to save the file to the right folder and file name.

I want to Grey out the ribbon completely so that user can even change the font or any thing else for that matter. The sheet and workbook is protected. Need a way to stop any unwanted tinkering.

View 3 Replies View Related

Missing Menu Commands

Oct 29, 2008

I have run into a problem with the Insert menu.

In the submenu
Cells
Rows
Columns
Worksheet

are "Greyed out" and therefore not available.

This happens when the application is first opened - no code is running it seems to be associated with the Personal workbook?

I have not encountered this previously.

IT help desk was its usual high standard - ZIP

I have searched this board without success.

The Microsoft Help functions were also silent.

View 9 Replies View Related







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