Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Extracting Range from worksheet and inserting into userform

Mike,

I missed a dot in that response. they should be

_For_lablel:__
userfrm.lblSSN.Caption = Worksheets("Sheet1").Range("A1").Value
_For_Textbox?_
userfrm.txtSSN.Text = worksheet("sheet1).range("a1").value

Sorry about that. you got the principle but copied my error<g

Bob

PS Is Kalamazoo the home of Fender guitars (or is my memory failing me)?

"Mcasteel" wrote in message
...

Thank you again for your help Bob, your solutions are really going to
help me out. Like I stated earlier, Im a novice programmer, I have not
programmed in 2-3 years and my boss came to me with this project which
was a little over my head, but I knew it was possible.

I have just one last question. You showed me how to return data from
the worksheet to a label. I just want to be sure I also know how to do
this to a text box.

_For_lablel:__
userfrm.lblSSNCaption = Worksheets("Sheet1").Range("A1").Value
_For_Textbox?_
userfrm.txtSSNvalue = worksheet("sheet1).range("a1").value

???'s
Can I pull the data right from thw worksheet stright into the object
like this, or do I have to go from the worksheet to a variable and then
to the object in the userform?


Thank you again.

Mike
Kalamazoo, Michigan


--
Mcasteel
------------------------------------------------------------------------
Mcasteel's Profile:

http://www.excelforum.com/member.php...o&userid=15698
View this thread: http://www.excelforum.com/showthread...hreadid=272267



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
Inserting pictures into unprotected range in a protected worksheet Fernando Reyes Excel Worksheet Functions 1 August 26th 09 12:20 AM
VBA: Extracting Range from worksheet and inserting into userform Mcasteel[_2_] Excel Programming 1 October 26th 04 09:18 AM
VBA: Extracting Range from worksheet and inserting into userform Mcasteel Excel Programming 1 October 25th 04 11:18 PM
Extracting metatags from a web page and inserting them in a worksheet. John Wirt[_6_] Excel Programming 2 July 11th 04 08:44 PM
Showing Worksheet Range in Userform RonMcC[_2_] Excel Programming 0 February 23rd 04 03:46 PM


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