Solved

Excel VBA display value of control in a form. (Easy)

Posted on 2014-01-30
5
349 Views
Last Modified: 2014-01-31
I have a spreadsheet with a form frmDemo that has a control called cboPeriod.


1. How do I msgbox a control in this form called cboPeriod??

2. How do I set sheet1 cell A1 is cboPeriod?
0
Comment
Question by:Patrick O'Dea
  • 3
  • 2
5 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 39822878
1. What do you mean when you say "How do I msgbox a control..."?

2.Worksheets("Sheet1").Cells(1,1).Value = frmDemo.cboPeriod.Text
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39822881
1. Maybe MasgBox frmDemo.cboPeriod.Text
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39823288
That's it !

Thanks
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39824030
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2013
0
 

Author Comment

by:Patrick O'Dea
ID: 39824081
Thanks Marty... I will read later.


I read your profile ....
Your years in the business surpasses mine (but not by that much!).
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question