Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default ListBox Result to a Specific Cell Location

I am putting the result of a ListBox into a Chart Title the formula that
in am pulling it from is:

="Daily Tracking Report as of "&TEXT(K1,"mm/dd/yy")&"For: "&J1

I need the result of ListBox1 on UserForm5 to display in cell J1 as
text.

I select from UserForm5.ListBox1 a name, and that name is used to then
AutoFilter a dataset by. I also need that selected name to populate
cell
J1 (before or after) the dataset is filtered. It appears that after the
filter
happens it loses what value was selected.

Any suggestion? -Randy-

My Code:

With Worksheets("DataPage")
.Activate
.Range("A1"). _
CurrentRegion.AutoFilter Field:=1, _
Criteria1:=UserForm5.ListBox1.Value
With .AutoFilter.Range
.Offset(0, 1).Resize(.Rows.Count, 3). _
SpecialCells(xlVisible).Select
End With
End With



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default ListBox Result to a Specific Cell Location

With Worksheets("DataPage")
.Activate
.Range("J1").Value = Userform5.ListBox1.Value
.Range("A1"). _
CurrentRegion.AutoFilter Field:=1, _
Criteria1:=UserForm5.ListBox1.Value
With .AutoFilter.Range
.Offset(0, 1).Resize(.Rows.Count, 3). _
SpecialCells(xlVisible).Select
End With
End With


--
Regards,
Tom Ogilvy


Randal W. Hozeski wrote in message
news:Ee5Ib.232403$_M.1023113@attbi_s54...
I am putting the result of a ListBox into a Chart Title the formula

that
in am pulling it from is:

="Daily Tracking Report as of "&TEXT(K1,"mm/dd/yy")&"For: "&J1

I need the result of ListBox1 on UserForm5 to display in cell J1 as
text.

I select from UserForm5.ListBox1 a name, and that name is used to then
AutoFilter a dataset by. I also need that selected name to populate
cell
J1 (before or after) the dataset is filtered. It appears that after

the
filter
happens it loses what value was selected.

Any suggestion? -Randy-

My Code:

With Worksheets("DataPage")
.Activate
.Range("A1"). _
CurrentRegion.AutoFilter Field:=1, _
Criteria1:=UserForm5.ListBox1.Value
With .AutoFilter.Range
.Offset(0, 1).Resize(.Rows.Count, 3). _
SpecialCells(xlVisible).Select
End With
End With





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
Excel 2003- Tabbing to a specific location in a cell monty the magician Excel Discussion (Misc queries) 6 May 5th 10 07:13 PM
Show value from specific column based on location of active cell Spuds Glorious Spuds Excel Discussion (Misc queries) 1 November 5th 08 05:43 PM
cell location containing specific text Gregg R Excel Worksheet Functions 8 April 9th 07 09:25 PM
hyperlink an excel cell to a specific location wthin application f dirtboy New Users to Excel 1 January 17th 05 08:07 PM
hyperlink an excel cell to a specific location wthin application f dirtboy Excel Discussion (Misc queries) 0 January 17th 05 08:03 PM


All times are GMT +1. The time now is 10:18 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"