Click Hyperlink Changes Value Of Another Cell

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


ADVERTISEMENT

Can't Click Hyperlink In Locked Cells

Jun 10, 2013

Any way to make it so that a cell can remain locked but be able to click a hyperlink? I need the cell to remained locked so nobody can alter the hyperlink name and value but I would like users to be able to click it and have it open in their browser.

View 9 Replies View Related

Macro To Right Click A Cell And Select Item From Right Click Menu?

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

Hyperlink In Cell Have Email CODE But Hyperlink Is Not Clickable

Jul 2, 2009

I have this code that looks through my worksheet once the conditions are met it will email, and in column "M" I put a hyperlink to where the document is stored. All works as far as the email format, even grabs the hyperlink but it’s not clickable in the email.

Here is the code.

I am outlook 07 and vista 07.

Option Explicit
Const Startingrow = 11 'Data starts on row ##
Const AlarmDelay = 183 'send warning
Sub CheckTimeLeftFac()
'References needed :
'Microsoft Outlook Object Library

Dim i As Long
Dim j As Long
Dim msg As Long
Dim Lastrow As Long
Dim WhoTo As String
Dim SubjectLine As String
Dim MessageBody As String
Dim olMail As Outlook.MailItem
Dim olApp As Outlook.Application
Dim strLink As String

View 10 Replies View Related

Click On Color Button And After Button Click It Will Color Entire Row Of Cell?

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

Hyperlink - Insert New Rows Without Losing Hyperlink?

Jan 30, 2014

I have hyperlinks betwene one worksheet to another - they only only hyperlinked thourh column & rows (eg: A100) etc. How can I lock these hyperlinks but still allow users to insert new rows without losing their place?

View 2 Replies View Related

Hyperlink Address From Hyperlink Formula/Function

Oct 17, 2006

I am having a slight problem copying hyperlinks. I have written some code that sorts data by date and then creates a simple diary. It originally placed the name of the event in the new diary sheet. What I would like to do is instead of copying the name into this new sheet copy a hyperlink that I have created to the company's website for that event.

I can create the hyperlink using hyperlink(B1,A1) where A1 is the company name and B1 is the web address but since the new sheet will not have the underlying data I need to actually copy the values and format of the hyperlink rather than the formula.

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

Hyperlink Cell To Filter That Cell Value Based On Colour Filters Used In Another Sheet?

Aug 5, 2013

I have a table which says that this is the amount of coloured cells we have in another sheet.

For e.g.

Field Name Code A
Item Description 5

Now, the item description column has 5 cells in another sheet which are filled in with "Yellow" Colour. So what i want to do is to click on this 5 in sheet 2 in this case as per the attached sample which takes me to the filtered result on sheet1 of 5 yellow coloured cells under the column of Item description including an additional filter of Code "A"

View 1 Replies View Related

Copy Cell Data Into Next Empty Cell Upon Button Click

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

Click To Copy Cell Within Range To Destination Cell?

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

Copy Hyperlink Cell To Range Of Cell Individually

Dec 1, 2012

I have a hyperlink cell. Straightforward copying and pasting it to another cell works well, with the new cell replicating the hyperlink. However, if I try to copy the hyperlink cell to a range of cells (say B1 to B5), at first it looks ok, but once I click one of them, it appears they are all clicked. And if I delete one of the cells in the range, say B3, ALL cells within that range loses its hyperlink. It looks like all of these hyperlinks are referencing one another, but once I delete one cell, the rest loses its hyperlink (the words are still there). At the current time, I have to copy into the range individually (copy to B1, then B2, then B3...etc), but this becomes a hassle if I have a large range.

View 7 Replies View Related

Change Hyperlink As Cell Reference Is Changed In Cell?

Jan 27, 2012

Is it possible to change hyperlink as per the cell reference changed in a cell. for example :- in cell D2 the apply a match formula to find out a cell reference (eg "A"& Match function based on info type on cell A1) Now I want to create hyperlink as per the cell reference mentioned in cell D2. suppose I type Red in A1 and D2 give me the cell reference A51 than automatically Hyperlink create for A51. and it continiously changed whatever i type in A1 and what cell reference is showing in D2.

Sheet1ABCD1Type Abbrivation12Full FormACell AddressA13Is it possible that I click on Cell D2 and it goes to particular cell 45Abbrivation6Short CodeDescription71A82B93C104D115E126F137G148H159I1610J1711K1812L1913M2014N2115O2216P2317QExcel 2007Worksheet FormulasCellFormulaB2=VLOOKUP(B1,A6:$B$1000,2,0)D2="A"&MATCH(B1,$A$7:$A$1000,0)

View 3 Replies View Related

Go To Cell Upon Click

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

Value In Cell Upon Click

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

Hyperlink In Same Cell....

Apr 29, 2009

I have tried searching the forums and google but most of them explain how to use hyperlink with regards to different cells or worksheet or dedicated internet links.
i have a little twist to that and am unable to figure out exactly how to make that happen?

My requirements:
cell a3 has value 321011
now this needs to be hyperlinked iteself meaning

cell A3 will display the same value 321011 but should be hyperlinked to
http://support.microsoft.com/kb/321011

View 5 Replies View Related

Can't Set Cell Hyperlink

Jul 30, 2014

I have a number of sheets with a "target" cell in specified rows that contains text and a hyperlink to a file (JPG or GIF). I need to modify the filename and pathname according to other values in other cells, then update the target cell text and hyperlink.

So far i have the old filename, path and hyperlink A also have the new filename, path and hyperlink And, i can set the target cell new text.

But how do I set the new hyperlink? I've tried variations on the theme of Range.Hyperlinks(1).Add Address = newHL but nothing seems to work - run time error 438.

How I set the new hyperlink?

View 4 Replies View Related

Run A Hyperlink That Is A Cell.

Oct 11, 2009

I have got a hyperlink in cell A4 (see code below)

=HYPERLINK("mailto:Global_outbound_reporting?subject=" &A1,"Mail me")

(reason for subject being a cell is because it changes with time - part of a bigger macro). If I click this manually it loads the e-mail perfectly but I want it so that user doesnt have to click it and it runs upon click of an earlier button.

View 5 Replies View Related

Hyperlink Value Into A Cell

Jan 10, 2013

When a click a picture to follow a hyperlink, I want it to enter a value into the destination cell. Is there any way to do this?

View 6 Replies View Related

How To Have A Cell That Has Hyperlink

Jul 6, 2013

Is its possible to have a cell that has a hyperlink, but this hyperlink changes depending on the value selected in that cell? (cell is a dropdown option).

View 2 Replies View Related

More Than One Hyperlink In One Cell

Sep 3, 2008

I want to have two different links in the same cell. I have a brief paragrpah in the cell that refers to two other documents; I would like to link them. Is it possible to have a hyperlink in a cell such that clicking only on that phrase will trigger the link (just like HTML)? Or is making the entire cell the hyperlink the only alternative?

View 2 Replies View Related

Use Cell For Hyperlink

Feb 16, 2008

I was wondering if anyone can tell me how do i make excel add a Value from one cell, into a a string of text that is a hyperlink. For example, i have 2 columns, Part Number, and Web address. The part number is added manually by the user. I want the Web address to be calculated from the Part number so for example.

www.Parts.com/Search=XXX

is it possible for were the XXX is the Part number on that row is automatically inserted. Like this Part Number entered manually as 23456 and the HyperlinkWeb address automatically is this:www.Parts.com/Search=23456

View 2 Replies View Related

Click And Mark A Cell With An X

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

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 View Related

VBA - Right Click Not Selecting Cell

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

Highlightly ROW When You Click On Cell

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

Run Macro On Cell Click

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

Highlight Cell On CLick

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

Run A Macro On Cell Click

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

Cell Click Event

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







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