Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Userform / Text Box problems.


Hi,

I need to change the below code so instead of looking for the cell A1 (and
putting the value in a userform textbox) - it looks for the value in column A
of the row that the user has selected.

Private Sub UserForm_Activate()
txbProjName.Value = Range("A1").Value
End Sub

This will allow the user to select a row - run the userform and view the
data for that specific row (record).

Any help would be great.

Phil
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Userform / Text Box problems.

Private Sub UserForm_Activate()
txbProjName.Value = Range("A" & Activecell.Row).Value
End Sub


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"PW11111" wrote in message
...

Hi,

I need to change the below code so instead of looking for the cell A1 (and
putting the value in a userform textbox) - it looks for the value in
column A
of the row that the user has selected.

Private Sub UserForm_Activate()
txbProjName.Value = Range("A1").Value
End Sub

This will allow the user to select a row - run the userform and view the
data for that specific row (record).

Any help would be great.

Phil



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
Find & Replace text format jmn13 Excel Discussion (Misc queries) 2 May 25th 06 06:18 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Problems Autosaving an excel file/sheet as Text MaxFrance Excel Discussion (Misc queries) 0 March 25th 05 09:49 AM
Text Box Movement Problems Brad Excel Discussion (Misc queries) 2 January 12th 05 04:39 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


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