Double-Click Cell On Protected Sheet To Open UserForm

Apr 23, 2008

I have spreadsheet with client names. I'd like to build logic that will open a form with client information when a user double-clicks on the client name. But I have a couple of problems.

- First, I'd like to protect the sheet and hide the formulas. But when I protect the sheet, I get the "the cell or chart you are trying to change is protected" error when I double click the protected cell.

- If I deselect the "Select Locked Cells" options when I protect the sheet, I no longer have the ability to double-click on the cell.

how I can double click on a cell yet not allow the user to edit the cell (or see the formula)?

View 2 Replies


ADVERTISEMENT

Open Message Box On Double Click In Cell

Mar 30, 2007

I am trying to make it so that when you double-click in a cell in column A, a message box opens populated with the text string in the corresponding cell (same row) in column Z. Seems to me like it should be easy enough, but despite spending the last hour searching for clues, I can't seem to figure it out.

View 8 Replies View Related

Launch UserForm With Double Cell Click

Jan 30, 2008

I've found the code below and tweaked to suit my needs but having trouble. Had it working one time. The code below calls a userform when the user double clicks on a cell. The form pops up and is not active/enabled. I cannot select anything on the form until I select a cell on the sheet, then everything on form becomes active/enabled.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'check cells for desired format to trigger the frmSel_WBS.show routine
'otherwise exit the sub
Dim NumberFormat, DF
NumberFormat = Array("[Blue]General")
For Each DF In NumberFormat
If DF = Target.NumberFormat Then
frmSel_WBS.Show vbModeless
End If
Next
End Sub

View 2 Replies View Related

Double Click Merged Cell To Display Userform -

Apr 7, 2009

following on from previous post (http://www.excelforum.com/excel-prog...g-up-form.html) what if the selected cell is a merged cell (cell count is greateer than 1), what is the best solution to enable double click event on merged cell ?

View 2 Replies View Related

Double Click Cell To Jump To Sheet

Oct 27, 2007

I have a list of numbers in column B of one sheet.

these numbers are unique and randomly allocated to other sheets in the workbook.

i would like a macro which when a user double clicks on a cell in the list of numbers .. the macro will jump to the sheet containing that number.. (i.e. do something like the find function)...

I have some code below which might be useful for you but I can't work out what I need to write.

View 14 Replies View Related

Double Click Row To Return Data To Userform For Edit Then Return Back To Sheet

Jan 30, 2014

I am trying to create a data entry sheet to enter quotes on. When a quote is received, I click on my "Add quote" button and a userform appears. Data is entered into the userform (frmEntryForm) and returned back to the next available row.

I also need to be able to:

Edit a row by double-clicking it. When a row is double-clicked, data from that row is passed back to the userform, edited and returned back to the same row (to prevent duplicates).Validate that all fields are complete within the userform where relevant (i.e. if the work is not complete or in progress then the "Invoice Number" and "Actual Cost" fields are disabled and blanked to prevent entry (I think this is almost sorted judging by my tests)

I have attached my sheet : 2014 Gatwick Quote Log (Macro Enabled).xlsm‎

View 14 Replies View Related

Open With Double-click

May 12, 2009

I seem to have broken something!. Whenever I double-click to open an Excel file (.xls files are associated correctly), Excel opens, but nothing happens. That status bar says "Ready," but my workbook never appears.

If I do a File-> Open within Excel, then I am able to open the workbook. I have no idea what is going on. This occurs for all Excel files whether they contain macros or not.

View 9 Replies View Related

Create Macro Upon Double Click Cell Display Filter In New Sheet?

Nov 8, 2012

Sheet1

Upon clicking any cell in Sheet1, it will automatically filter based on cell A and B.

Sheet2

Automaticall display filtered criteria based on double click from Sheet1

For example: when I double click on C1, on Sheet2 will automatically diplay filtered data based on A1 and B1 and same thing goes to if I double clik on C2 on Sheet2 will automatically diplay filtered data based on A1 and B2.

View 4 Replies View Related

Double Click To Run A Sub But Then It Runs The Userform Activate Sub

Jun 2, 2006

I have a userform that has a listbox that contains data in 7 columns. I also have a command button that when clicked allows the user to edit the data in whatever row of the list box is highlighted. This works fine.

I decided to have a double click in the listbox on a row do the same thing. So I simply picked the double click event and called the command button sub. When I try this, it runs the command button sub, but then it runs the userform Activate sub. This is a problem as it does things that I do not want to occur again.

I then decided to put the command buttom code in a separate sub and then call that sub on the double click -- same result.

Then I just put the exact code that I have in the command button into the double click event -- still does it.

Anyone know why this happens, I see no reason for it. It works great in the command button, but with double-click it run the userform Activate sub when it is done.

Here is the code that runs (if called by a command button it works fine, if called by a double_click in the listbox, it runs the userform_activate sub):

Private Sub Edit()
SetCell = "d" & ListBox1.ListIndex + 5
Range(SetCell).Select

Range("AA1").Value = 1
ADD_ODC.Show

NextRow = Range("D65536").End(xlUp).Row
EndARR = "J" & NextRow
ODCData = Range("D5", EndARR)

ListBox1.Column = WorksheetFunction.Transpose(ODCData)

Range("AA1") = ""
ListBox1.ListIndex = -1
Filling
End Sub

View 4 Replies View Related

Edit UserForm Label Caption On Double Click

Feb 29, 2008

i've got a form that shows employee data in labels, and i'd like the user to be able to double click a label to change it (using a pop-up form). is it possible to get the pop-up to show after a double click instead of a single click?

View 5 Replies View Related

Userform: Delete All Content Through Double Click But Not The Highlighted Line

Jan 7, 2010

I have a worksheet in whichs Column A Cells , there is corresponding string content in Col. Z. Some cells of column Z contain of many lines (up to 100 line) which i want to reduce to one. I want to select one line through double clicking in the listbox of the userform and all other lines should be deleted and only the clicked one should remain. Code should then jump to the next non empty Z cell.

Columns B, C, D, E, F, G and H should also be shown in the userform and they should be live editable. I have attached and example file with userform and example data.

View 10 Replies View Related

Go To Specified Sheet & Workbook By Double Click

Jul 24, 2007

In a folder I have 2 excel files the the first file called products & contains sheets with the names of each product, in each product sheet I recorded the names of some customers.

The second file is called customers & contains sheets with the names of each customer.

when both files are open & I am in the products file I want to be able to select a product lets say shampoo double click on one of the customers & automatically go to the specified customer in the customers file.

I inserted this code in every sheet of products file & things went fine:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

For Each wb In Workbooks
For Each wk In wb.Worksheets
If wk.Name = Target.Value Then
MyWin = wb.Name
End If
Next wk
Next wb

Instead of inserting this code on every sheet module (I might have 60 sheets) I tried to insert it

Just In Thisworkbook module but it didn’t work:

Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)

For Each wb In Workbooks
For Each wk In wb.Worksheets
If wk.Name = Target.Value Then
MyWin = wb.Name
End If

View 3 Replies View Related

Prevent Sheet Rename By Double-click

Jan 30, 2008

Is there a method by which I can prevent a user from renaming a worksheet by doubleclicking on the sheet tab ? Please note that I do not wish to use workbook protect method.

View 9 Replies View Related

Double Click On A Total It Opens A New Sheet

May 15, 2009

i am working on a pivot report and it works fine so far, but the only thing i am trying to do here is when duble click on a total it opens a new sheet with the report needed but it names the sheet as sheet1 and so on (sheet2,3,4...)

is there a way when i duble click a total it automaticly names the sheet for me?

View 9 Replies View Related

Automatically Moving From One Sheet To Another Through A Double Click

Jul 29, 2006

I am trying to do is use VBA to move from the diagram directly to the macro number. The Cells on the Diagram have functions in them and there is no reference to what macro goes with which function. My list loocs like this


Macro NumbersFunctionCommands
1001 Lamp On
1002 Lamp Off
1003 (Empty)
1004 (Empty)
1005 (Empty)
1006 CH 611 611
1007 Ch 612 612
1008 Ch 613 613
1009 Ch 614 614
1010 Ch 615 615
1011 Ch 616 616
1012 Ch 617 617
1013 Ch 618 618

The diagram is a 20 by 20 grid of cells that correspond to macros I have a third sheet that has the macro numbers listed in the same format as the diagram. The problem I have is how to read the corresponding macro number from Sheet 3 then find that number on Sheet 2.

View 9 Replies View Related

Double Click Checks Cells Color In Another Sheet?

Aug 14, 2014

I am trying to set up a double click macro that checks the color index of the exact same cell you double click on, but in another sheet. What would be the syntax for that?

View 2 Replies View Related

UserForm-trying To Open With A Button Click

Nov 8, 2002

I have a User Form that I am trying to open with a button click. I made a copy of one workbook with a new name. The Buttons and Macros were all copied as well. I modified the old Userform so that I can release Version 2 of the Userform, and now when I click on the button in Excel, I get the following error : Object doesn't support this property or method. Run-Time error '438'.

The code assigned to that button is as follows:

Sub Button121_Click()
'
' Button121_Click Macro
' Macro recorded 8/11/2002 by Kale Mayfield

'
UserForm1.Show

End Sub

What am I doing wrong? HELP! Once you have the Userform populated with ComboBoxes,Textboxes, etc., is there now way of making changes to that Userform? If you make changes and rearrange the locations of the buttons and boxes and labels... does that mess up the button in Excel that opens the form to begin with?

View 9 Replies View Related

Double Click On Cell To Run Macro

May 22, 2014

I am trying to run a macro when I double click on a certain cell (D34). The cell has data in it (Southeast NSC). What I am expecting to happen is once I double click on the cell the macro will run the retrieve and I will end up at expense chart page.

The macro I am trying to run is an Essbase retrieve.

[Code] ....

I tried using the macro below but no luck:

[Code] ....

And i tried:

[Code] ....

View 1 Replies View Related

How To Double Click On A Cell In Column

Dec 5, 2011

I want to be able to double click on a cell in a column. If it has a certain word in it, it will take it to that worksheet. Auto filters are used so these cells can move in a column at any time. This is why I am looking for a code to validate the contents in the cell first.

ie. Cell has the word: BSALT, when double clicked it will take it to the BSALT worksheet.

Cell has the word MLW, when double clicked it will take it to the MLW worksheet.

And so on.

These values are in one column only. If they weren't able to be autofiltered i could do it, but the mere fact that they can move around is giving me trouble.

View 9 Replies View Related

Double Click Cell To Go To Source Not Working?

Nov 28, 2012

Normally when I double click on a cell with a formula linked to another spreadsheet, the double click takes you to the source. However, if the cell also has a comment, the double click takes you into the edit comment option and not to the source.

Is it possible to turn off the edit comment option from the double click?

View 5 Replies View Related

What Happens When Double Click Cell In Pivot Table

Feb 19, 2014

What happens when I double click a cell in a pivot table?

Or when I double click the grand total?

View 3 Replies View Related

Run Macro When Double Click Any Cell In Range?

Feb 7, 2014

I want to run a macro any time any cell in a range is double clicked. I can make it work with just on cell, but not any cell in the range.

View 3 Replies View Related

On Click (or Double) Copy Cell Value To Next Worksheet

Jul 2, 2009

I'm trying to do is create a link so that if you double click on a cell in a range (Sheet1!A3:A100) it will copy the value (ie Sheet1!A6) and paste it to the next sheet in a fixed cell (sheet2!B2).

The reason is I want to use the next sheet to do Vlookups (or may just do it in a macro) to fill in a template.

View 9 Replies View Related

Have ComboBox Appear On Cell Selection & Double Click

Oct 9, 2009

I am looking for assisitance in combining the functionality of two seperate combo box code sets. The first combo box code set allows the combo box to automaticially appear when a user Clicks on a cell that contains a data validation list. The second set of code will have a combo box appear when a user Double-clicks on a cell that contains a data validation list. And the code allows for Named Ranges on a seperate worksheet.
I would like to have the functionality of having the combo box to appear when a user Clicks on a cell and not having to Double-click. Also, I would like to have the option to use Named Ranges on a seperate worksheet ("Validation Lists").

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim str As String
Dim cboTemp As OLEObject
Dim ws As Worksheet
Set ws = ActiveSheet
On Error Goto errHandler
If Target.Count > 1 Then Goto exitHandler
Set cboTemp = ws.OLEObjects("TempCombo")
On Error Resume Next
If cboTemp.Visible = True Then
With cboTemp
.Top = 10
.Left = 10
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
.Value = ""
End With
End If................

View 4 Replies View Related

Double Click Calendar In Cell Range Only

Feb 4, 2007

I've been reading through the forums, but do not know how to double click to get the calendar pop up,only in a certain range (e.g. Cells G5:G85).

I already have the module: frmCalendar

Running Office 2003

View 6 Replies View Related

Add Diagonal Borders To Cell On Double Click

Sep 14, 2007

I have made a toggle button to turn diagonal borders on and off in a single cell. Is there a way to make the button transparent, such that the button can be placed over the cell itself and the contents of the cell will be visible underneath, no matter the condition of the toggle?

View 8 Replies View Related

Double-Click Cell Border Jumps To Other Cells

Oct 23, 2008

I'm trying to double-click a cell to edit the contents, and I am off a few pixels, it treats the double-click as a double-click on the cell border, not the cell contents, and the focus jumps to another cell in the direction of the border instead of going into edit mode. The effect is as if I had pressed Ctrl and the arrow in the direction of the border I clicked on.

The only way I've found to disable this is to turn off the option "Enable fill handle and cell drag-and-drop", but unchecking that also disables actually useful things, like dragging the corner of a formula call to copy it down, etc.

Is there a good way to disable this cell jumping when I accidentally double-click a cell border?

View 9 Replies View Related

Append More Than 256 Characters From Cell On Double Click To TextBox

May 21, 2008

if there is a workaround to this issue. I have this code that transfers data to a textbox but it stops after hitting the character limit. Does anyone know how to extend this limit ?

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
With Me.Shapes("textbox1").TextFrame.Characters
.Text = .Text & Target.Value
End With
End Sub

View 6 Replies View Related

Run Macro On Double Cell Click If Cell Part Of Named Range

Feb 6, 2008

I have a sheet where i have many differently named areas (like state1_1 and state1_2) When I doubleclick on a cell then a macro should run with following criteria: 1) Macro will run if the doubleclicked cell is part of any range in the list. Here I mean that names of ranges which belong to that list start with word state (like state1_1 and state1_2). No other ranges should not be in that list. If the cell is not in the range that is part of the list, then nothing should happen.

View 2 Replies View Related

Excel 2007 :: Run Code Only When Double Click In Any Cell Of Three Different Columns

Jul 13, 2014

How to run some VBA code only when double click any cell of three different columns (say A, G,H) and not run in any other cell. This is being run in Excel 2007.

View 7 Replies View Related







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