Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I use values in two separate cells to select a new cell?

I am using two user form list boxes to return values in two separate cells
(the cell link). I want one cell to correspond to a row, the other to a
column. I want a macro button that will automatically select the cell
corresponding with the values listed in the two cell links. Can anyone help?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default How can I use values in two separate cells to select a new cell?

Hi,

Is this what you want? This is for a button using the FORM toolbar
which calls macro "Button1_Click":

Sub Button1_Click()

Dim r as long, c as Integer

With Worksheets("Sheet1")
r = .Range("a1") ' Link cell for first listbox - row
c =. Range("b1") ' Link cell for second listbox - column
. Cells(r, c).Select
MsgBox ActiveCell
End with

End Sub


HTH

"nassetr" wrote:

I am using two user form list boxes to return values in two separate cells
(the cell link). I want one cell to correspond to a row, the other to a
column. I want a macro button that will automatically select the cell
corresponding with the values listed in the two cell links. Can anyone help?
Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate first and second name in one cell into separate cells. Dwight in Georgia Excel Discussion (Misc queries) 3 January 25th 06 09:09 PM
Separate first and second name in one cell into separate cells. Gary's Student Excel Discussion (Misc queries) 0 April 27th 05 11:11 PM
Macro to various text values in cell to separate cells floss Excel Programming 3 June 5th 04 08:17 PM
Select an array of cells and paste to separate worksheet - 2nd post - 1st didn't work!! Lee Wold[_2_] Excel Programming 1 February 10th 04 03:22 PM
using cell values to select range of cells Ray[_9_] Excel Programming 4 October 10th 03 08:31 AM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"