If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > pick userform by searched column location

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-06, 10:42
VBALordCorp VBALordCorp is offline
Registered User
 
Join Date: Jul 2004
Posts: 34
Arrow pick userform by searched column location

I have two sets of data on one spreadsheet side by side. I searched for a value and found it but now I need to load one of two userforms depending on what column it is in. I was originally going for an if else statment saying:

if xlcolumn(A)<value<xlcolumn(J) then
load userform1
else
load userform2
endif

if that doesnt work would a case statment work
Reply With Quote
  #2 (permalink)  
Old 05-02-06, 03:34
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Just catching up on some old posts and found this one unanswered. Is it OK now?

If not, please post again. Sounds like a VBA Find(xxx).Column would do the job. Find returns a range (or nothing if not found) and the .Column lets you know the column. EZ?

Fazza
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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