Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
D D is offline
external usenet poster
 
Posts: 121
Default Use Array to Goto Certain Rows

I'd like to create a "goto" type of dialog for an excel worksheet that I have various macros in. The find and select code shouldn't be much of a problem, but what I'd like to do is have the userform have 2 listboxes. One with the information from column A of the worksheet (Job #), the other with info from column B (Job Name). So I imagine I would need to create two arrays. The first populated with the job #s, second populated with the Job Names. But, for the Job Names, I would like to populate the array with just the text that comes before chr(10) in the cell. The Job name cells are all like "Text" + chr(10) + "text" + chr(10) + "text" and I would just like the first line of text to be used in the array.

The idea is to be able to find any job either by the job number or job name, so the way I see the userform working is being able to select either the number or name, have the other listbox move to the corresponding number or name, and then use just the unique job # to do the actual search and goto opearation.

Any help would be great.
  #2   Report Post  
Posted to microsoft.public.excel.programming
D D is offline
external usenet poster
 
Posts: 121
Default Use Array to Goto Certain Rows

Nevermind, got it figured out

"D" wrote:

I'd like to create a "goto" type of dialog for an excel worksheet that I have various macros in. The find and select code shouldn't be much of a problem, but what I'd like to do is have the userform have 2 listboxes. One with the information from column A of the worksheet (Job #), the other with info from column B (Job Name). So I imagine I would need to create two arrays. The first populated with the job #s, second populated with the Job Names. But, for the Job Names, I would like to populate the array with just the text that comes before chr(10) in the cell. The Job name cells are all like "Text" + chr(10) + "text" + chr(10) + "text" and I would just like the first line of text to be used in the array.

The idea is to be able to find any job either by the job number or job name, so the way I see the userform working is being able to select either the number or name, have the other listbox move to the corresponding number or name, and then use just the unique job # to do the actual search and goto opearation.

Any help would be great.

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
How do I name rows and columns in an array Gulfman100 New Users to Excel 1 January 5th 08 01:50 AM
Adding rows to an array chris w Excel Worksheet Functions 1 December 10th 04 02:27 AM
Goto end of data & select all rows below Tempy Excel Programming 5 June 1st 04 04:36 PM
array of rows Henk Rek Excel Programming 1 April 26th 04 04:18 PM
array of rows marko Excel Programming 3 November 26th 03 06:34 AM


All times are GMT +1. The time now is 02:08 PM.

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

About Us

"It's about Microsoft Excel"