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

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 08:23 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"