Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JCO JCO is offline
external usenet poster
 
Posts: 54
Default Collect User Input

Can VB programing within Excel, take the user's Input.

Can a macro run and get the Font Name and Font Size? If so, how is this
done?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 536
Default Collect User Input

On Saturday, March 2, 2013 3:24:10 PM UTC-8, JCO wrote:
Can VB programing within Excel, take the user's Input.



Can a macro run and get the Font Name and Font Size? If so, how is this

done?

Thanks

Hi JCO,

Try this.

Option Explicit

Sub FontIt()
Dim i As Variant, j As Variant
i = Range("A1").Font.Size
j = Range("A1").Font.Name
MsgBox i & " " & j
End Sub

Regards,
Howard
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Collect User Input

JCO wrote on 02/03/2013 :
Can VB programing within Excel, take the user's Input.

Can a macro run and get the Font Name and Font Size? If so, how is
this done?
Thanks


Why do you need to prompt the user for this? Is their some reason why
the user can't just select these from the toolbar control[s]?

Otherwise, you'd need to use the VB6 Common Dialog control, which would
have to be distributed with your VBA project. A VB6 developer license
is required to use/distribute the control in your projects.

Perhaps you can google to see if someone has written a pure VB font
picker that you can modify to work in a VBA userform. Or maybe there's
a DLL available!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
User Form instead of message box to collect data Rock Excel Programming 2 April 9th 10 11:44 PM
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
Macro to collect rows with user-specified cell value [email protected] Excel Programming 2 November 29th 06 02:30 PM
use Excel2000 as web interface to collect user input? Michael[_15_] Excel Programming 0 August 11th 05 06:25 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 12:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"