ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Format Cells Dialog from a Macro (https://www.excelbanter.com/excel-programming/411612-format-cells-dialog-macro.html)

scott56hannah

Format Cells Dialog from a Macro
 
Hi,

Is there anyway to call the Format Cells Dialog from within a Macro so that
you can ask the user what format they want to apply to a cell and then apply
it programatically ?

I have searched in a few places and I cannot find any reference or pointer
on how to do this ?

Thanks
Scott

Gary Keramidas

Format Cells Dialog from a Macro
 
not sure if this is what you want or not.

application.dialogs(xlDialogActiveCellFont).Show

--


Gary


"scott56hannah" wrote in message
...
Hi,

Is there anyway to call the Format Cells Dialog from within a Macro so that
you can ask the user what format they want to apply to a cell and then apply
it programatically ?

I have searched in a few places and I cannot find any reference or pointer
on how to do this ?

Thanks
Scott




Gary Keramidas

Format Cells Dialog from a Macro
 
in vb help, search for this

Built-In Dialog Box Argument Lists

you'll see them all

--


Gary


"scott56hannah" wrote in message
...
Hi,

Is there anyway to call the Format Cells Dialog from within a Macro so that
you can ask the user what format they want to apply to a cell and then apply
it programatically ?

I have searched in a few places and I cannot find any reference or pointer
on how to do this ?

Thanks
Scott




scott56hannah

Format Cells Dialog from a Macro
 
What I am after is the ability to show the user not options for fonts, but
also the options for Number, Alignment, Border...

Is it possible to show that dialog box from a macro and then retreive the
value selected by the user and then apply that formatting to all the required
cells ?

Scott

"Gary Keramidas" wrote:

not sure if this is what you want or not.

application.dialogs(xlDialogActiveCellFont).Show

--


Gary


"scott56hannah" wrote in message
...
Hi,

Is there anyway to call the Format Cells Dialog from within a Macro so that
you can ask the user what format they want to apply to a cell and then apply
it programatically ?

I have searched in a few places and I cannot find any reference or pointer
on how to do this ?

Thanks
Scott






All times are GMT +1. The time now is 10:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com