[Solved]UserForm, Textbox (AutoPopulate) with Named Ranges.

LarryLaser

New Member
Joined
Apr 5, 2006
Messages
9
Hey Folks :)
I am Building a Grade Book for my Wife, that can do everything she needs it to do (big Project). And I ain't no Master coder. :eek:

I am working with named ranges, not real knowledgable yet :oops: .

I have a "UserForm1" ("UF1") that initalizes when a cell is selected (Range.Name("Pic"), The "UF1" is MultiPage (2), page1 has 1 "TextBox1" and 3 CommandButtons.
Here is my Question.
When the "UF1" Initalizes, I need the "TextBox1" to be populated from 2 cells in the same row as the selected cell but 2 different named ranges. The formula would be like this "=CONCATENATE('Student Info'!D10," ",'Student Info'!C10)", Range C8:C43 = "StudentLast" and D8:D43 = StudentFirst.
Then I want the "TextBox1" to populate the selected Cell after clicking on CommandButton1. This I can handle :confused:

If you would Like I can attach a copy of the porject.
Any help with my project would be appreciated. :)

by xld @vbaexpress.com (Bob) Great Writer
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) 
     'needs to target Range Name "Pics"
    If Not Intersect(Target, Range("Pics")) Is Nothing Then 
        ViewPicture Target.Value 
    End If
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,141,923
Messages
5,709,360
Members
421,632
Latest member
BrennieB

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top