Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pulling data into text box

I posted this once but did not see it, I apoligise if it is a duplicate
post.


I have a multipage userform that has several drop down boxes that the user
needs to populate (name, month etc..) from that I have text boxes that I
want to populate from another spreadsheet located in the same file.
I need to use an If-then because I want it too look until it finds a match
to the month and then bring in column 3.
I have the textbox set to refresh on _chg action of the dropdown and it is
bringing in the first row but will not find the match. The code is included.

Sub Populate04selldays()
Dim Row As Integer, i As Long, j As Long

Set selling = ThisWorkbook.Sheets("Selling")
TopicCount = Application.WorksheetFunction.CountA(selling.Range ("A:A"))
For Row = 1 To TopicCount
If selling.Cells(Row, 1) = cbmonth.Value Then
tb04selldays.Value = selling.Cells(Row, 3).Value

End If
Next Row
CurrentTopic = 1
End Sub


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
pulling certain characters from a string of text SaraMack Excel Discussion (Misc queries) 3 December 10th 09 08:22 PM
autofit text that is pulling data from another tab NANGO Excel Worksheet Functions 0 April 27th 07 01:14 AM
Pulling text from a cell jnasr Excel Worksheet Functions 3 November 9th 06 04:44 PM
help wanted for pulling text data ghynes Excel Discussion (Misc queries) 2 August 21st 06 03:12 PM
pulling text into a sum formula Karen D Excel Worksheet Functions 2 April 19th 05 01:48 AM


All times are GMT +1. The time now is 05:00 AM.

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"