Solved

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

Posted on 2014-01-30
5
357 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 47

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 47

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 47

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

734 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