|
-
Sep 1st, 2005, 09:43 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Include Spreadsheet object in UserForm
Is it possible to include a variable size, both rows and columns, spreadsheet object in a user form and have it link back to a range in the main xls file?
thanks
Declan
-
Sep 1st, 2005, 10:04 AM
#2
Lively Member
Re: Include Spreadsheet object in UserForm
There is a spreadsheet control you can use form the Userfro mToolbox under additional controls.
Not real sure right off about Linking, but this is a workaround:
VB Code:
Private Sub UserForm_Activate()
Spreadsheet1.Range("A1").Value = Range("A1").Value
End Sub
-
Sep 1st, 2005, 10:07 AM
#3
Re: Include Spreadsheet object in UserForm
Not too sure as to why you would want to link back to the original file.. you might want to look into pulling the range into an array and then displaying it inside a list box.
What exactly are you trying to achieve here..
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 1st, 2005, 10:11 AM
#4
Thread Starter
Frenzied Member
Re: Include Spreadsheet object in UserForm
I need the user to see and potentially edit the data in this range and my problem is letting edits occur while the code is running.
Thats why I'm exploring copying the data from the range into a temp s/sheet (held in a form) and then writing back to my main range.
I hope this makes sense...
-
Sep 1st, 2005, 10:14 AM
#5
Re: Include Spreadsheet object in UserForm
If you want to allow the editting of the spreadsheet behind then Link like Justin has pointed out.
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 1st, 2005, 10:30 AM
#6
Thread Starter
Frenzied Member
Re: [RESOLVED] Include Spreadsheet object in UserForm
Thanks Justin - thats just what I needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|