LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default UserForm assigns cell address to Variable

Thanx for the reply.

the UserForm has a comboBox on it, that looks up the *unique* values in all
of column D.
So dropping down the comboBox [cboAuditID] has a list of one, two, three or
however many AuditID's in it, ie AuditID-01 / AuditID-02 / and so on.

The intention is when I drop down the comboBox, and then choose an AuditID
from its list, Excel will take me to the first occurence of that AuditID and
assign its cell address to the variable myCell.

Hope I've been clear enough [!!], this one's a little hard to convey.
Thanx again.
- Mike

"JLGWhiz" wrote:

You didn't specify what kind of control you would use on the UserForm so I
did not make the title line a click event. But if you use the code behind
the form you will need to change the title line to Private Sub
SomeControl_Click()

"MikeF" wrote:

UserForm.show is frmAuditID.

Column D contains a few hundred instances of "AuditID-01" and then
"AuditID-02", sorted in ascending order [ie all instances of 01 are first].
Sometimes there are many more, ie AuditID-03 and so on, but always sorted in
ascending order.
A list of these, however many there may be, appears in frmAuditID.

The objective is to have frmAuditID appear at the start of a sub, I choose -
say "AuditID-02" - and it assigns the cell address of wherever the *first*
occurence of "AuditID-02" is in column d to a variable named "myCell".
Sometimes "AuditID-02" will be in cell d44, sometimes in cell d233,
sometimes, in d411, and so on.

Note - the "finding" part of this can be manually accomplished by selecting
cell d7, CTRL-F, search sheet/columns/values and then just punching -01 or
-02 or -03, etc ....

** Once myCell is given the appropriate address, another subroutine will
then run, using the base address of "myCell" to navigate from.

Any assistance will be *sincerely* appreciated.

Thanx in advance,
- Mike

 
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
insert contents of variable cell address Charlie@ParkViewTerrace Excel Discussion (Misc queries) 1 June 30th 09 11:28 PM
Add Userform Image from Cell Picture Address Corey Excel Programming 1 January 25th 08 02:16 PM
Set variable to active cell address shelfish Excel Programming 5 November 21st 07 06:41 PM
How can I use a variable as cell address? Matt[_33_] Excel Programming 9 September 27th 05 09:01 PM
Setting a variable cell address Hugh Jago Excel Discussion (Misc queries) 3 January 5th 05 03:45 PM


All times are GMT +1. The time now is 09:38 AM.

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"