Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to pass arguments from ThisWorkbook to a UserForm

I have a userform that has a number of checkboxes in it.

When the user double click on a specific cell - I have an event that
calls the userform - the userform gives the user the option of what
checkboxes they'd like to select.

With those selected checkboxes, I'd like to put values in the cell the
user double clicked.

I just don't know how to get the target information into the userform -
or vice versa - the information from the userform back into
ThisWorkbook.

Thanks,
Robin



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default How to pass arguments from ThisWorkbook to a UserForm

Robin,

To load a userform control, from within a normal code module, you would use
something like

Userform1.Textbox1.text = Range("A1").Value

Vice Versa, from within the Userform class module

If Checkbox1.Value = Trfue Then
Worksheets("Sheet1").Range("A1").Value = 17
If Checkbox2.Value = Trfue Then
Worksheets("Sheet1").Range("B1").Value = 27
If Checkbox3.Value = Trfue Then
Worksheets("Sheet1").Range("C1").Value = 37
End If


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"strataguru" wrote in message
...
I have a userform that has a number of checkboxes in it.

When the user double click on a specific cell - I have an event that
calls the userform - the userform gives the user the option of what
checkboxes they'd like to select.

With those selected checkboxes, I'd like to put values in the cell the
user double clicked.

I just don't know how to get the target information into the userform -
or vice versa - the information from the userform back into
ThisWorkbook.

Thanks,
Robin



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
How to pass variables as arguments of a function Excel-craze Excel Worksheet Functions 1 August 12th 09 11:48 AM
Can I pass arguments to my formatted empty spreadsheet file? Paul H[_2_] Excel Discussion (Misc queries) 3 July 25th 09 07:34 PM
ThisWorkbook of personal.xls Jack Sons Excel Discussion (Misc queries) 4 August 29th 07 04:28 PM
ThisWorkbook variables... Jim Carlock[_2_] Excel Programming 13 September 1st 03 03:09 AM
ThisWorkbook Macros Random Excel Programming 1 August 16th 03 04:03 PM


All times are GMT +1. The time now is 01:28 AM.

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"