When User Click In One Cell Have Value Placed In Another
Apr 24, 2012
Is there a better way to do the following:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = Range("b5").Address Then
Sheet1.Range("j5").Value = Target.Value
End If
If Target.Address = Range("c5").Address Then
Sheet1.Range("j5").Value = Target.Value
[Code] ........
View 6 Replies
ADVERTISEMENT
Sep 8, 2012
I have a series of consecutive cells that I have a number entered in it. AP50 through AP 74 are numbered 1 through 25. I don't want the user to be able to change the number but I do want them to be able to click in the cell as this makes other functions happen.
View 3 Replies
View Related
Jan 15, 2014
I have a macro where I manually select a cell then the macro kicks in to copy and paste the contents into the Find function. From there it goes to another work sheet, clicks on a cell in column one and searches for matching cell contents. Then If false it manually goes back to the original worksheet/cell and then I input a N in the left adjacent cell. If true I enter a Y. Right now I can only run this for the specific cell the macro was recorded for. I would like to expand this.
What I would like to do create a loop in the macro that waits for my cell choice input then continues with the with the Find function. If false the macro should just loop back to the original worksheet/cell and wait for input, ie the next cell selected. However, if true a worksheet/cell is selected, a Y is input and it loops back to the original cell and waits for input.
View 9 Replies
View Related
Nov 6, 2007
I have a macro with about 20 Subs and before each one I wanted a msgbox saying "macro is now running sub 1." which then changes to "Macro is now running sub 2", all while the user is sat there with his feet on the desk twiddling his thumbs.
View 9 Replies
View Related
Aug 20, 2007
i have some code that allows my users to enter their user ID on double clicking. The worksheet code below shows how on double clicking into Colum 3 (If Target.Column = 3 Then) then the user ID will appear. Q: How do i get the code to work in Columns 3, 5 and 7 but not those inbetween?! I tried using "or" but it allowed the ID to be entered into all columns! i.e. 3,4,5,6 and 7 which is not what I require. In short I need the ID to appear on double clik into every other column.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim user As String
'This refers to the function ReturnUserName, which takes the name from the NT environment
If Target.Column = 3 Then
Target = ReturnUserName
Cancel = True
End If
End Sub
View 9 Replies
View Related
Jan 22, 2009
I have a spreadsheet that users update which I then want them to perform a number of checks on. At the bottom will be a button for them to click stating "Click here to confirm checks completed". When they click it I want it to put a flag somewhere that I can then use to prevent them from saving if they haven't clicked the button. I know how to do the saving but, but how do I get the button to put a flag somewhere?
View 2 Replies
View Related
Mar 21, 2012
Say a user inputs information into the user form, when they click enter, it enters all the data on the next available line in a workbook.
Is is possible for the user to click a cell on a previously entered row, and have the userform populate with the existing information?
example.
say the user has to fill out 3 separate areas. 1, 2, 3. However the user only has data for 1 and 2. They go ahead and enter the infromation for 1 and 2 and click submit to transfer to sheet. Now later he gets information for area 3, can the row the information that he previously entered, lets say column 1, row 1, and it reopens the userform with the information for 1 and 2 prefilled from what he entered previously?
View 9 Replies
View Related
Feb 7, 2014
I wonder if it is possible to make a macro that right clicks a cell and then chooses a option from the list?
View 11 Replies
View Related
Jan 23, 2014
what code I can put behind a button so that once I click on that button,
What ever cell i click on, the whole row of that cell will be colored a certain color.
Is this where i would used a target approach?
View 6 Replies
View Related
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
Jul 18, 2012
I am using a worksheet to scan or enter students into a school event and determine their eligibility to participate in the event. Everything is working great but I need to do the following on Enter Student button click:
1) Cut scanned value (ID number) from input Cell A1
2) Paste value into next empty cell in column A (Rows build as students are inputted)
3) Copy Eligibility status (text) from column F into A6
I have a limited VBA/Macro background and have NEVER got a button to work.
View 9 Replies
View Related
Oct 18, 2013
My goal would be to click on a cell within a range of cells (in a column) and have the value copied to a specified destination cell. There would be a few different columns with source cells and two destination cells. Each column would to copy to a specific cell. My ojective is basically to deal with different processing times (days, weeks, months).
Here's a little visual, clicking on C4 for example would copy the value "5" to cell B2. Clicking on D4 would copy "12" to A2.
row/col
A
B
C
D
E
1
Days
Weeks
Processing time X (weeks)
Processing time Y (in days)
Processing time Z (in weeks)
2
3
10
110
3
4
11
111
4
5
12
112
5
6
13
113
View 1 Replies
View Related
Nov 24, 2006
I have a worksheet dealing with customer order numbers in rows and various information about those orders in columns. The first 10 rows contain generic " header" type information with formulas to return certain values from the data below. Panes are frozen below row 10 so I can manually scroll down to see data. My "line numbers" (1,2,3,etc.) are listed in column "A", and begin on worksheet row 11.
The worksheet is set up so that when I enter a customer order number in cell "F2", my line number (Excel row + 10) is returned in cell "L2". I would like to use a Macro that would give the user the option (possibly with a button) to automatically scroll to the report line number returned in cell "L2".
View 3 Replies
View Related
Jun 6, 2007
Any way to make it so that if a user clicks into any single cell in columns O to AH, it will populate the cell with an X?
So if user clicks on cell, populate with X.
View 9 Replies
View Related
Dec 18, 2008
Is there a way to set a cell so if you click it, an "X" will be in the cell and if you click it again it will clear? Specifically I am looking to do this in the "1st Trip" column on the attached. I was going to use a check box but the appear to small and it does seems as though in Excel 2003 the size can be adjusted?
View 11 Replies
View Related
May 21, 2012
I currently have
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Address = "$H$1:$K$1" Then
Call FINALIZED_BY_QC
End If
End Sub
In my sheet code. In a macro I have some code to unlock these cells
Code:
Range("$H$1:$K$1").Select
Selection.Locked = False
But the code is trying to select these cells and run the macro. At this point I just want to simply unlock the cells not select them...
View 9 Replies
View Related
Sep 9, 2012
I have been able to record a macro which changes the value of a cell, based on a hyperlink click.
However I am not able to make it work properly for my lack of VBA knowledge.
The issue is I want to click the hyperlink in the column "B", say "B2" which is some email say (abc@gmail.com). This should result in Cell C2 changing its value to "sent".
If I do not click B2 , then value of C2 remains blank.
The macro which I recorded looks like
Code:
Sub Macrotest1()
'
' Macrotest1 Macro
'
'
With Range("B2")
Range("B3").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Range("C2").Select
[Code]...
Sample file is uploaded in this location
Download email addr1.xlsm from Sendspace.com - send big files the easy way
This works till cell B5 since I recorded it till there.
I am not able to write a code for looping the same till the end (say B1000). I don't want to write till B1000 the same piece of code, but would like to do a loop (For, With...end with)...but really don;t know how to go about the same.
View 5 Replies
View Related
Apr 5, 2007
how to highlight an entire row and column automatically when the cursor activates a cell in a spreadsheet?
I have a large spreadsheet and when I click on a cell I'd like the whole row to be highlighted so I can check that I'm editing in the correct row. I know that the ROW HEADER is highlighted but I'd like the entire row to be highlighted. I'd like this to be so for every cell on my spreadsheet.
View 9 Replies
View Related
Jan 14, 2008
i have macro that opens up a calendar and inserts a date. i'd like it to automatically run when a particular cell is clicked. i don't want it to run for all cells, just cells in a certain column.
View 9 Replies
View Related
Mar 28, 2008
Here is a selection of my data:
[data] ......
Now here's what I would like to achieve.
If I click or maybe double-click on a cell I would like the cell colour to change to lets say yellow. However, I would like all matching cells to change colour too.
So from my example above if I clicked on C13 "3 TIMER" then C13 would change to yellow as well as C14 - C17 - C18 - C19
View 9 Replies
View Related
Oct 14, 2008
i have this piece of
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Range.Address "$A$1" Then macro1
Exit Sub
End Sub
I want so when i click on cell A1 it will run macro1.
So far the click on the cell works, but it works with every single cell I click on. How to I get it to just work with cell A1 instead of everyone single cell I click on?
Also, there are about 30 different cells that will run different macros, how would I go about creating adding the code the one above without having to create separate sub worksheets?
View 9 Replies
View Related
Jul 10, 2009
How do I run code if I click on a cell in the workbook, like Cell A1 of Sheet1?
So far I just have...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Stop
End Sub
View 9 Replies
View Related
Aug 18, 2008
Is there a way to make a cell that when you click it a calendar pops-up and you can click a date on that calendar to auto-fill in that cell?
View 9 Replies
View Related
Feb 9, 2006
1. I would like to trigger an event once i click on a cell, for example I click one click on a cell (1,1) and it run some macro.
2. When I bring my cursor to this cell, to change cursor pointer to pointer like in hyperlink.
View 5 Replies
View Related
Dec 1, 2006
I have a spreadsheet with many worksheets in it. Sheet ' Names' has personal data for a person. Sheet 'Credits' has more information about that person's work.
When a cell in sheet 'Names' is clicked, the user is forwarded to cell containing the same name on sheet 'Credits'. I know how to do that with hyperlinks, but its not going to work becuase the list of names is updated.
1. How do I make the Sheet 'Names' react to clicking of the cell? Do I use procedure 'Worksheet_SelectionChange()'?
2. How do I switch sheets to highlight the cell on sheet 'Credits'?
3. How do I compare values in cells that are on 2 different sheets?
The code to highlight the cell is this, i think:
For x = 3 To <some number>
If Cells(x, 1).Value = <value of cell In sheet 'Names'> Then
Columns(x).EntireColumn.Activate
x=x+1000000
End If
Next x
I know this may seem trivial, but I am very new to VBA.
View 9 Replies
View Related
May 24, 2008
I want to jump from one cell position (on picture, marked with numbers from 1 - 6)
But i want to jump to them respectly(first to 2, then on 3....) I have used these numbers just to describe space between cells(in rows and columns), and actually those are blank cells! Starting blank cell can be everywhere(e.g. A2), it doesnt matter, it is only important how to jump from one cell to another in mentioned manner!!!!!!!
View 7 Replies
View Related
Dec 30, 2008
exist any function that do following?
I am on the row 100 in column G. I had a freeze the first row where i have hypertext and other function. I want add here (in the 1. row) something like hypertext, but i want to stay in the row where i was.
When i am on row 100 in column G and i want to create function which move my cursor to column W but in the same row (row 100 in this case).
Next time i will be in row 154 and i will want to move my cursor again in column W and use this same hypertext/function or what.
View 11 Replies
View Related
Jan 1, 2009
The datas has stored in columns "a:g" all the way down.
When i double click any cell in column "A" I would like to store the value one by one into the column "K" from first cell to down.
View 9 Replies
View Related
Jul 17, 2014
I am creating a resource and I'd like the users of this resource to be able to click a cell which will then automatically come up with an x or similar symbol (tick?) and then if they click the cell again the x will disappear. Is this possible? I don't want a drop down box where they have to choose what they want, I want it to be an automatic action when the cell is clicked because there will be many cells that I will need to do this.
View 14 Replies
View Related
Sep 22, 2008
I understand how to click and drag a cell or row of data but is it possible to click and drag a group of rows of data? I have 12 rows of data that will repeat itself every 12 weeks. I can "save & paste" easily enough, but just curious if there is a way to click and drag 12 rows of data so that they remain the same for every group of 12 weeks.
View 2 Replies
View Related