Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Spin Button Link To Another Cell

how to linked the "small change" value in a spin button to take the value of another cell?

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Link Spin Button To Active Cell
I've got a problem with the used spinbuttons. The code I used (see below)allows the user to choose a column (with the option button(A,B,C,D,E) in which changes would be made and than changes the value of the given cell according to the name of the spinbutton (which specifies the row). This forces me to use about 80 spinbuttons in a single sheet, and the whole workbook comprises of over 30 sheets pumping the whole file to a size of over 3 MB. To reduce the file size I need a code that would link a master spinbutton (one per sheet) to any active cell (the "just clicked one")

Private Sub sel(ByRef Column As String)
For Each obj In Application.ActiveSheet. OLEObjects
If obj.progID = "Forms.SpinButton.1" Then
obj.LinkedCell = Column & (Val(Mid$(obj.Name, 11)) + 3)
End If
Next obj
End Sub

Private Sub OptionButton1_Click()
sel "b"
End Sub

Private Sub OptionButton2_Click()
sel "c"
End Sub

View Replies!   View Related
Link Text Box & Spin Button
I have 6 text boxes on 5 different tabs all with their own spin button that will push the number up or down, starting from the default value. How do i lock/restrict the text box entry so, the spin button is the only way of changing the value?

View Replies!   View Related
Spin Button To Scroll Through Cell Links
I have a couple spin buttons in my worksheet.

What I want each one to do is to scroll through cell links.

For example, cell I4 has a lookup reference of "=LOOKUP(2^20,Sheet3!A:A)". What that does is get data from the very last line on sheet3 column A.

What I want the spin button to do is scroll through the lines in column A.

So if a user decided he/she did not want that data from column A, then all they would have to do is press up or down on the spin button, scrolling through other data that is in column A.

View Replies!   View Related
Spin Button
i want a spin button to decrease the value on a cell into negative numbers.

In other works, if cell a1 has a value of 10, i want the down arrow on the spin button to make the 10 decrease down to 0 , then -1,-2,-3 and so on .

View Replies!   View Related
Userform Spin Button
I'm using a form to display records based on a value YSNumber using this

Set tbl = Sheet1.Range("A:A")
Set fnd = tbl.Find(What:=cbo_YSNumber.Value, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False)
Then I display reccord data by populating labels like this:

Label_RequestInstructionID.Caption = ActiveCell.Offset(0, 3)
Label_SchemeTitle.Caption = ActiveCell.Offset(0, 4)
Label_PMO.Caption = ActiveCell.Offset(0, 5)
I'd like to use the spin button to allow the user to cycle up or down the records.

View Replies!   View Related
Spin Button Macro
I don't know much about VBA, but I am sort of working my way through. I have inserted a spin button in an excel sheet and assigned it to the following code in a module:

Sub SpinbuttonD4()
Range("D4").Value = Range("D4").Value + 0.01
End Sub

So, now when I click the spin button (either the up arrow or the down arrow), the value in D4 increases by 0.01.

What I actually want to do, however, is for the value in D4 to increase by 0.01 when I click the up arrow, and decrease by 0.01 when I click the down arrow.

View Replies!   View Related
Spin Button Event Handling
The issue I'm having is with the ActiveX Spin Button (in 2007, formerly in the Control toolbox in 2003). I need the Spin Button to call a certain macro whenever it is clicked up or down. I know how to do this with one spin button, the problem is that the workbook I'm creating could potentially have dozens (or even hundreds) of these spin buttons that all need to call the same macro. It doesn't seem feasible to have to create separate Change event functions for each of these.

My company used to use the simpler form controls for this process, but a situation has come up where we need the ability to make the buttons invisible, or at least appear disabled, and that doesn't seem doable with the form controls.

So my question is, is there a way to specify in my workbook that whenever a spin button is clicked, this particular macro is to be called? Or even, whenever an ActiveX object is clicked, call the macro, because the spin buttons will be the only ActiveX objects in the workbook. I've read a bit about how to create global event handlers for worksheets and workbooks, but I can't find anything related to spin buttons specifically.

View Replies!   View Related
Spin Button To Select Cells
I need some help using the spinner tool (the 2 way arrows) as a macro. I want it to point to different cells after each press. So, basically:

Click down once, go to cell A5
Click down again, now go to cell A6
Click down again, now go to cell A7
Clicking down again won't do anything, A7 is the end of the road

And the same thing backwards when clicking up.

I use the two commands SpinButton1_SpinDown() and SpinButton1_SpinUp(). I put the Range("A5").Select, etc. as the code. I don't know how to do the incremental part. I need a counter in there...

View Replies!   View Related
Spin Button Black Border - How To Remove
Im creating a form with a spin box option - however when i run it in test I always get a black border around the arrows. Its anoying because I want to make the spinbox small and it overtakes the arrows. I looked everywhere in the properties but can't find where to turn it off. I saw the arrorw and background color but nothing about the border.

I attached 2 pictures for reference.

View Replies!   View Related
Use Variable As Default Value For Text Box / Spin Button
to plug a variable (integer) into a text box / spin button as its default value.

I have a sheet set up for data entry where 1 row = 1 record = 1 page (of data arranged to print on a form supplied by an outside company). This data is then arranged on the second sheet (up to a maximum of 30).

If there are there are 15 records entered on the spreadsheet on a given day I am trying to use:
LastNum = Application.WorksheetFunction.CountA(Range("G7:G37")) + 4
Where LastNum is the number of rows / entrys that have been typed into the first sheet and that will be printed by default.

how to get that variable into the text box / spin button control.

View Replies!   View Related
Textbox Spin Button With Duplicate Entries
I'm working on a userform in excel 2003 and have hit a bit of a brick wall.

I have a listbox on a userform that shows only unique entries (customers) which are populated off sheet1 (called Names). On the sheet itself, there are customer entries repeated when there is more than one contact stored. I have the listbox working fine to show each customer only once.

My problems comes in here:

On the userform I have a textbox (this textbox in turn will determine specific contact details to be shown in other textboxes for the contact displayed) with a spinbutton that I want to show each contact for a customer (only showing one at a time and change made with spinbutton). I just can't get this to work properly...

View Replies!   View Related
Cycle Through Multi-pages With Spin Button
On the attached example i have a button on sheet1 which opens a form. On this form i have four pages of a multi-page control and below it i have a spin button. What i want is for when the spin button is pressed to the right then the multi-page moves up to the next page and vice-versa for the left spin button. How do i write this code?

View Replies!   View Related
Spin Button To Increase Or Decrease By 1 Each Time It Is Clicked Up Or Down
I am having difficulty finding information on coding my spin button on a user form. I searched and haven't found any information. I need to do is code a spin button to increase or decrease by 1 each time it is clicked up or down. I would like it to populate to a text box on my form if that is possible.

View Replies!   View Related
Link Cell Text To A Command Button Caption
I have created a cover sheet with various command buttons linking into the available worksheets. I was wondering if it is possible to set the title of the command buttons by linking them to the text in a particular cell in each work sheet??

View Replies!   View Related
Button/Link On Worksheet To Sort
I would like to have a button or a link on my spreadsheet that when it is clicked will sort my table with a pre-defined sort.

View Replies!   View Related
Create New Worksheets From Button/link
on a workbook I use.

The workbook (26-11GL.xls) contains a varying number of sheets.
Sheet 1 - Menu
Sheet 2 - DS1
Sheet 3 -DS2
Sheet 4 -DS3
Sheet 5 - DS4
Sheet 6 - Company1
Sheet 7 - Company2
Sheet 8 - Company3
Sheet 9 ....14 Company 4,5 etc
Sheet 15 - CompanyTotals

What I would like to do is when I open the workbook on the Menu page I would like to have some links / buttons that will automatically create a new worksheet called DS5 which has all the formatting, formulas etc from DS4 (or the last complete DS sheet)
If this is possible I would like to be able to add Company worksheets as both DS sheets and company sheets can have from 3 to 35 sheets in either area.

If possible I would like the new DS sheets to be named with the next valid number.

View Replies!   View Related
Can You Have Text Link That Acts Like Command Button
I want to be able to have a link that uses cell data as the passed function parameter!

I want to do this so I can simply copy the formula down for new rows and not have to create a command button for each row?

Maybe there is an entirely much easier way to do what I want?

FOR EXAMPLE, the 1st column would be a link to an entry form passing the 2nd column which would be an ID field.

View Replies!   View Related
Command Button Link To Open Sheet(s)
I am trying to create a sheet with 'buttons' on, a bit like a 'linked table of contents', that will take the user to individual sheets (as opposed to clicking on the sheet tabs). I can see how to place Command buttons on a sheet (in this case Sheet1), but I think I need help with the code to make the buttons function as I envisage. Is this in the scope of help via this forum?

View Replies!   View Related
Set Up A Direct Link To The Internal Calculator, Using A Button In VBA
I'm trying to set up a direct link to the internal excel calculator, using a button in VBA. I have the shortcut on my own toolbar, but I have many users that use the workbook, and to get them all to set up is almost impossible, so I am trying to make it simple for them.

I've tried doing it through a hyperlink direct to the calc.exe file, but get a lot of messages popping up (that'll scare a few of them). So thought I would try and find the excel name for it and use VBA, but I cannot find it anywhere.

View Replies!   View Related
User Form Command Button Link To Macro Recoding
Is it possible to have a user form command button perform link or steps that are recorded with macro recorder? I am trying to reformat cut and paste a xls raw data file. I am trying to keep my file uploads to a min., but can upload an example if necessary.

View Replies!   View Related
Reference Cell Based On Button Location & Determine Button Used
I received this code from an example I found once upon a time that was originally submitted by someone else. Right now the code enters the current date in a cell of the same row as the checkbox when it's checked. I need to revise it, or come up with something similar, that will reference the value of a cell when it is in the same row as the button (from the Forms toolbar) that is clicked to activate the macro. First of all, I don't know how to reference a Forms button in VBA.

Sub Process_CheckBox()
Dim cBox As CheckBox
Dim LRow As Integer
Dim LRange As String
LName = Application.Caller
Set cBox = ActiveSheet.CheckBoxes(LName)
' Find row that checkbox resides in
LRow = cBox.TopLeftCell.Row
LRange = "B" & CStr(LRow)
'Change date in column B, if checkbox is checked
If cBox.Value > 0 Then
ActiveSheet.Range(LRange).Value = Date
'Clear date in column B, if checkbox is unchecked
ActiveSheet.Range(LRange).Value = Null
End If
End Sub

Here is some other code I already created. Unfortunately, because I don't know how to do the row reference, I had to create 25 different macros, which just bulks up the size of my file and slows it down. But here is what I'm trying to accomplish in my macro:.............

View Replies!   View Related
Spin Buttons - Moving Columns
ive seen a spin button used to move hole rows up and down.

what i would like to do is.

I use cells I9-N9-S9-X9

can i use a spin button to move collums?

how do i write the code, say if i select cell S9 and i want to move it to I9 using the spin button how do i go about that?

View Replies!   View Related
Macro To Link Cell To Sheet & Cell Stated By User
I have a macro that inputs a sheet and cell from the user. when the macro tries to make a formula it outputs =data!'AE3'. I need it to output =data!AE3

Dim Sheet As String
Sheet = InputBox("Take Data from where?")
Dim startcell As String
startcell = InputBox("Start Cell?")

ActiveCell.FormulaR1C1 = "=" & Sheet & "!" & startcell & ""

View Replies!   View Related
Link To Any Cell
I would like to ask if there's a way that i can create a link in a cell to another cell. Sample: in cell A1: there's a word "click to go to cell A150" in this case i dont have to use scroll down to go to cell A150.

View Replies!   View Related
Link To Another Cell
I would like to have a link in a merged set of cells that puts the insertion point to another cell. Scenario: In cell k30, the user puts in the amount of credit card debt a individual has, and scripts the user based on that information. Later on, they get a more accurate running total of the amount of debt and need to change the amount in k30 for an accurate quote. After ther running total, in cell j172(a merged box for instructions) i instruct the user to be sure to enter the new total in cell K30.

1. Is there a way to put a button or a link that would put the insertion point back up to K30 automatically, but allow the user to change it themselves and not change it automatically?

View Replies!   View Related
Link A Cell To Another Cell On Same Worksheet Using A Formula
Is it possible to link a cell e.g. A10 that has a time value in it (there is a formula in this cell that puts in the time value) to another cell in a range of cells e.g. B1:B1000 that has the same time value?

I know someone out there knows how to do this.

View Replies!   View Related
Link Tab Name To A Cell Without Using A Macro
Is there a way of embedding a formula in a worksheet so that the tab name of each worksheet is linked to a value in a cell on that sheet? (I don't want to run a macro)
In other words if the cell name is changed, the page name changes automatically.

View Replies!   View Related
Link Image To Cell
In Excel, I have a sheet for each team that I manage. Each sheet lists the team members and displays their picture below their names. Some people are on multiple teams/sheets.

I have a master list with everybody's name and picture that I copy and paste the pictures from when putting a team together. This has become a very tedious process.

Is there a way I can type the person's name on a team sheet and have their picture automatically appear below their name? I don't know if this can be done with some kind of lookup or if it will involve VB. I tried making the picture the background of an Autoshape or comment, but I could not figure out how to dynamically change the picture based on the name in a cell.

View Replies!   View Related
Possible To Link The Name Of A Tab To A Cell In Its Corresponding Worksheet
if it is possible to link the name of a tab to a cell in its corresponding worksheet.

View Replies!   View Related
Use A Cell Value In A Address Link...
I have is a summary worksheet with two columns. One column is for Project ID number and the other is an address link to a specific cell in the worksheet corresponding to the Project ID. Perhaps the best way to explain this is by giving an example:

Project ID (Column 1)

Balance (Column 2)
='C:Financial Sheets[00-111.xlsx]Phase_21'!$H$1

As you can see the spreadsheets are named after the Project ID number. What I would like to do, if possible, is instead of typing in the name of the spreadsheet for each project in column 2 (Balance), I could somehow reference the cell value in column 1 (Project ID). Something like this:

Project ID (Column 1)

Balance (Column 2)
='C:Financial Sheets["A2".xlsx]Phase_21'!$H$1..........

View Replies!   View Related
Link Data In 1 Cell
Sample data:

Machine Part Number machine 1 123 machine 2 123 machine 3 123 machine 1 123 machine 2 456 machine 1 456 machine 3 456

i need to based on tis sample data come out with sth like tt:

Used In: 123 Machine 1, Machine 2, Machine 3 456 Machine 2, Machine 1, Machine 3

I need to group those machines under 1 part number. For instance, part 123 is used in which machines, I need to state them in a way like above. But repeated should not be stated again.

View Replies!   View Related
Link Cell To Sheet Tab
Can you link a cell to a sheet tab. If yes how?

View Replies!   View Related
Lookup Cell Fed Via A DDE Link
I am trying to build a stock watchlist in excel 2007 with a dynamic link to a DDE server (paid for).There is no add-in or plug-in, I just CTL ALT & drag each code from a watchlist in the program I am using and place it in a cell, however can only choose one data field at a time. There are 14 data fields and over 150 codes in my list which makes 2100 cells. (My guess is about 3 days work)

I would like to just enter the stock code in say column A (A3) and with each DDE data field (e.g. lastprice, open, cose, high etc) entered in subsequent columns have it lookup the stock code in cell A3 and return the correct value based on the code in column A, rather than entering each cell individually.

Is it possible to write a macro or vba code to create the cell formula so I can just fill down and save myself 3 days work?

The DDE server I am using is formatted like this:




I thought I might be able to do something like the following, but it doesn't seem to work.


Note: The DDE server can only be accessed while the other program is running and is password protected

View Replies!   View Related
Link Cell Formats
Is there a way for your linked data to cary over formatting such as Bolds, borders, fonts and colors?

View Replies!   View Related
Find Which Cell Contain Link
I have a file contain some links with the other file. I want to remove these links but I don't know which cell contain the links. Is there anyway that can let me know which cell contains links so i needn't search one by one?

View Replies!   View Related
Link Textbox To Cell/Range
How to set up textbox which value is in a spreadsheet and not the user input?

View Replies!   View Related
Link To A Cell From A Commandbar Control
I have a right click event for a cell where I create a custom commandbar with single or multiple control buttons based on the cell value. I want to link each control button to another cell in the same sheet.

View Replies!   View Related
Automatically Generate The Link Cell
A1, B1, C1, D1, E1, I1, J1 & D3 all linked to L1 thru S1 perspectively But when I copy the highted box and paste it, A4 automatically link to L4, as well as other fields. create a macro where excel automatically generate the link A1 = L1, A4 = L2, A7 = L3 and other fields perspectively all the way til the end?

View Replies!   View Related
Cell References Inside A LINK
is it possible inside this link to put a variable reference? for example to have a cell in my excel which in this case would be Report FY09 and if i change it to Repot FY08 the link would be c:Report FY08[PPV REVENUES FY 09 - Actual.xls]PPV Actual'!$C$4:$BB$4 or in another case if i have the name of the sheet like

='Report FY09'!D4
to do it
='Report FY08'!D4

or even the excel file
c:Report FY08[PPV REVENUES FY 09 - Actual.xls]PPV Actual'!$C$4:$BB$4
to do it
c:Report FY08[PPV REVENUES FY 08 - Actual.xls]PPV Actual'!$C$4:$BB$4

View Replies!   View Related
Read Data From Web By Using Link From Cell?
Iit is possible to do somethiling like this? I wanna load some data from web but I need link read from cell (e.g. sheet data!B1) .. so it means :

View Replies!   View Related
Link To Specific Cell In Preceeding Row!
This time I need to be able to reference a specific cell in the preceeding row of a GETPIVOTDATA formula. This is shortened example but it shows what I am trying to achieve:

Spellbound 1234 W
Spellbound 1234 W
Spellbound 1234 W

The GETPIVOTDATA formula is located in C6 in this example and needs to reference B5 i.e. the last ID cell reference. I need to work the formula this way as it will be placed at varying intervals in column C and the preceeding data for each NAME will vary as to how many rows each NAME contains.

View Replies!   View Related
Link Cell Contents Across Worksheets?
I work for an IT company who build their own PC's. And we use a simple Excel 2003 spreadsheet to piece-together and price-up PC's for retail, I've attached an example of the spreadsheet for you to see. It uses basic formulas so we can see at-a-glance things like VAT figures, margin, profit etc. Each PC we sell is contained within one Excel file, and each PC has it's own Workbook tab.

The problem I want to solve is whenever we change a component or price, we have to do each system manually, which gets very repetetive and time consuming. What I'd like to be able to do is change the price of, let's say, the motherboard, and have the price be reflected across each of the PC's using that same motherboard on each seperate tab. This same system would apply when we change a product name, product ID etc.

View Replies!   View Related
Link Content Of Textbox To A Cell
I have a Textbox in Sheet1 where there is some text or anything. I want to link this content to another textbox or cell in Sheet2.

How to do it? Is it possible to do without macros?

View Replies!   View Related
Link Changing As A Result Of A Value In Another Cell
In a worksheet I want that a link changes, after I change a value in another cell.

When cell A1 is 2006_04 the link should be:


When cell A1 is 2006_05 the link should be:


View Replies!   View Related
Drop Down Box To Relatively Update Cell Link
I made drop down form controls that specify yes/no as to whether I have the documents I need for a project- when I selected yes the same row will turn grey. Each form control is set to move/resize with its cell, so it stays on top of the cell. I have the drop down form set to cell link to the cell below it in the form control settings. So it would be over cell A1 and the value of 0/1/2/ would be entered into A1. However whenever I copy the cell/row, the new form control drop down does not update its cell link by relative positioning, the new cell link is also A1 Ė thus both drop downs are linked together. I do NOT put absolute referencing $A$1 so I donít know why the new copied forms donít update and point to B1?

Why doesnít my drop down menu update its cell link position when I copy and paste the cell it is attached to? Can form controls update their cell links via relative references (that is without the $$)?

View Replies!   View Related
Link Cell To Textbox On UserForm
I am creating a user interface for inputing info into a sales order, and then printing the sales forms already pre-filled based on the user's input. SO, I need the user to be able to type text into a textbox that is in a multipage control that is in a userform, and then have it automatically populate a specific cell in my workbook. Seems like this should be relatively simple, but I am just getting started with vba and can't seem to figure this out.

View Replies!   View Related
Link Workbooks Using Cell Values
I need to link to a different workbook but using cell values.

For example, in the attached file in cell B4 it looks like this:

='C:Documents and SettingsAdministratorDesktop[2508 Howell Jan-Apr 2008.xls]Week 9'!$D$20

I need a way to change Week 9 in the above formula using a validation list.

I would also like to know how to specify the above workbook referenced using a cell as well, for instance, C:Documents and SettingsAdministratorDesktop[2508 Howell Jan-Apr 2008.xls] would be the contents of a cell or the ability to click on a cell and have it bring up an open dialog box to browse to the file and input it's path into that cell.

View Replies!   View Related
Link Userform Textbox To Cell
How do I refer to the contents of a userform's textbox on a worksheet?

The userform will be opened, edited, and closed by the user. I would like to be able to refer a cell on my sheet to that textbox so that they always have the same content.

View Replies!   View Related
Drop Down Cell Link Reference
I have 6 worksheets that are identical cosmetically. Each has the same drop down box list with the same name (dropdown1), however the cell link on each sheet is different. (ie. sheet1 dropdown1 cell link refers to a sheet ' lookup' cell $K$1, sheet2 dropdown1 cell link refers to sheet 'lookup' cell $K$2, etc.) I have the same command button in each sheet that performs the same task so I wanted to keep one module for all 6. Problem is I set a variable to the cell link in the code, and this has to be changed.

DropDownValue = Sheets("Lookup").Range("K1").Value

Is there any way I can set this variable using a property of the drop down list?

DropDownValue = dropdown1.celllink

I don't want to create 5 more duplicate modules just to change this one bit of code (I only use it this time in the code!). If there is no way to get the cell link value of the drop down, could I possibly put a worksheet change event on the lookup sheet to populate a certain static cell with the value of the last cell change?

View Replies!   View Related
Use Cell Value To Automatically Generate Link
For non-blank cells in the range C11:C65536, I want to have a hyperlink automatically generated (in the same cell), using the cell value as a relative variable in the link itself. One intended use for this is to populate the range with stock symbols, and have it generate hyperlinks to the following address:

Where XXX is the stock symbol in the given cell.

View Replies!   View Related
Copyright © 2005-08, All rights reserved