PC Review


Reply
Thread Tools Rate Thread

Create new pattern in Excel programmatically

 
 
jonno
Guest
Posts: n/a
 
      18th Mar 2009
In Excel 2002 I can format a shape with a pattern. I can choose from 48
patterns in the list.
If those patterns aren't suitable is there any way that I can specify an
additional pattern?
eg Can I add some patterns programmatically when Excel starts up?

Here's what I do:
1) Add an AutoShape
2) Right click the AutoShape, choose Format Autoshape...
3) Choose Color dropdown
4) Select Fill Effects...
5) Choose Patterns tab
6) See 48 patterns, none of which are quite right

At this point I'd like some more patterns to be available. I'm happy to
write some VBA to get them in the list if possible.

cheers,
Jonathan
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      18th Mar 2009
You only have the options that are available on the worksheet. I usually
turn on the macro recorder and then try the operations I want on the
worksheet. Add a shape and then change the options. the macro recorder
usally will create the macro code you need.

"jonno" wrote:

> In Excel 2002 I can format a shape with a pattern. I can choose from 48
> patterns in the list.
> If those patterns aren't suitable is there any way that I can specify an
> additional pattern?
> eg Can I add some patterns programmatically when Excel starts up?
>
> Here's what I do:
> 1) Add an AutoShape
> 2) Right click the AutoShape, choose Format Autoshape...
> 3) Choose Color dropdown
> 4) Select Fill Effects...
> 5) Choose Patterns tab
> 6) See 48 patterns, none of which are quite right
>
> At this point I'd like some more patterns to be available. I'm happy to
> write some VBA to get them in the list if possible.
>
> cheers,
> Jonathan

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      18th Mar 2009
Create your own pattern using your favorite graphics editor.

Save as a *.jpg

Then instead of using "Pattern" choose "Picture" or "Texture"

Select the created *.jpg


Gord Dibben MS Excel MVP

On Wed, 18 Mar 2009 03:47:02 -0700, jonno <(E-Mail Removed)>
wrote:

>In Excel 2002 I can format a shape with a pattern. I can choose from 48
>patterns in the list.
>If those patterns aren't suitable is there any way that I can specify an
>additional pattern?
>eg Can I add some patterns programmatically when Excel starts up?
>
>Here's what I do:
>1) Add an AutoShape
>2) Right click the AutoShape, choose Format Autoshape...
>3) Choose Color dropdown
>4) Select Fill Effects...
>5) Choose Patterns tab
>6) See 48 patterns, none of which are quite right
>
>At this point I'd like some more patterns to be available. I'm happy to
>write some VBA to get them in the list if possible.
>
>cheers,
>Jonathan


 
Reply With Quote
 
Jonathan McComb
Guest
Posts: n/a
 
      18th Mar 2009
Ta, that sounds like the best option. The client isn't convinced though!
Many thanks.

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> Create your own pattern using your favorite graphics editor.
>
> Save as a *.jpg
>
> Then instead of using "Pattern" choose "Picture" or "Texture"
>
> Select the created *.jpg
>
>
> Gord Dibben MS Excel MVP
>
> On Wed, 18 Mar 2009 03:47:02 -0700, jonno
> <(E-Mail Removed)>
> wrote:
>
>>In Excel 2002 I can format a shape with a pattern. I can choose from 48
>>patterns in the list.
>>If those patterns aren't suitable is there any way that I can specify an
>>additional pattern?
>>eg Can I add some patterns programmatically when Excel starts up?
>>
>>Here's what I do:
>>1) Add an AutoShape
>>2) Right click the AutoShape, choose Format Autoshape...
>>3) Choose Color dropdown
>>4) Select Fill Effects...
>>5) Choose Patterns tab
>>6) See 48 patterns, none of which are quite right
>>
>>At this point I'd like some more patterns to be available. I'm happy to
>>write some VBA to get them in the list if possible.
>>
>>cheers,
>>Jonathan

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I create a new pattern in Excel programmatically? jonno Microsoft Excel Programming 3 18th Mar 2009 10:35 PM
Programmatically create button on Excel worksheet (vb.net) valerashylin Microsoft Excel Programming 2 19th Mar 2008 01:27 PM
how to create a table programmatically in excel? Britt Microsoft ADO .NET 2 10th Nov 2006 02:12 PM
Pattern search - Programmatically. =?Utf-8?B?UnAwMDc=?= Microsoft Excel Programming 0 9th Oct 2006 03:45 PM
Create Blank Excel file Programmatically =?Utf-8?B?U2FyYWg=?= Microsoft Access Form Coding 2 14th Sep 2006 05:47 AM


Features
 

Advertising
 

Newsgroups
 


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