LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Excel's built-in dialogs

Hi Ben:

Is it possible that Excel's Dialogs(xlDialogFormatAuto) diolog

has similar properties and they are simply un-documented?<<

Sorry, no.

Regards,

Vasant.

"Ben R. Bolton" wrote in message
...
I need to do the same thing as Dag. I found that for Word's
Dialogs(wdDialogTableFormat) does does provide access to the data through
properties. Is it possible that Excel's Dialogs(xlDialogFormatAuto)

diolog
has similar properties and they are simply un-documented? If they do

exist
is there a way to determine what they are?

Ben


With Dialogs(wdDialogTableAutoFormat)
FormatChosen = .Format ' 0 - 42
BordersActivated = .Borders ' 0 or 1
ShadingActivated = .Shading ' 0 or 1
FontActivated = .Font ' 0 or 1
ColorActivated = .Color ' 0 or 1
HeadingRowsActivated = .HeadingRows ' 0 or 1
LastRowActivated = .LastRow ' 0 or 1
FirstColumnActivated = .FirstColumn ' 0 or 1
LastColumnActivated .LastColumn ' 0 or 1
AutoFitActivated = .AutoFit ' 0 or 1
End With


http://msdn.microsoft.com/library/de...ableStyles.asp

"Tom Ogilvy" wrote in message
...
Just to add to what Jan already stated:
Built in dialogs work the same as if you picked them from the menu

manually.
The return True if the user click OK and False if the user clicks

cancel.
That is about as much information as you can get from them.

Once autoformat does its formatting, their is nothing to identify that

it
was done with autoformat - it doesn't create any identifiable attribute

of
the range - it applies formatting cell by cell based on its internal
algorithm.

--
Regards,
Tom Ogilvy


"Dag Johansen" wrote in message
...
Hi,

and thanks a bunch to you Jan for your response.

Now I've only got one small problem... I don't want to
perform autoformatting at the time of showing the dialog
(the range that will be formatted isn't yet known; it
depends on external data) - I just want to use it to let
the user interact with this familiar form.

So.. how can I

a) get the choices the user made in the dialog?

b) stop the dialog from performing the autoformatting?

The former is vital while the latter is no big deal; I can
always select some dummy range to autoformat and then
remove the formatting afterwards (the dialog gives an
error message if I try to show it without a more-than-one-
cell Range selected).

Best regards,

Dag

-----Original Message-----
Hi,

Application.Dialogs(xlDialogFormatAuto).Show

Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
Hi,

is it possible to (legally!) use Excel's dialog boxes
from
VBA script? In my case I would like to display the
AutoFormat dialog box to the user. I need to read the
user's settings (chosen style + options)
programatically -

the formatting will later be applied to several
different
ranges.

My guess is I have to make a userform myself. So I'll be
very happy if any of you can please prove me wrong!

Regards,

Dag
.

.







 
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
Dialogs nc Excel Discussion (Misc queries) 1 March 23rd 05 02:17 PM
RefEdit does not behave like Excel's built-in reference edit boxes Tom Ogilvy Excel Programming 0 September 11th 03 06:43 PM
RefEdit does not behave like Excel's built-in reference edit boxes Dave Ramage[_2_] Excel Programming 0 September 11th 03 04:55 PM
Using Dialogs Save Stratuser[_2_] Excel Programming 0 July 22nd 03 08:59 PM
Windows Common Dialogs in VBA? Leonard Jonas Excel Programming 1 July 22nd 03 07:32 PM


All times are GMT +1. The time now is 12:53 PM.

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"