PC Review


Reply
Thread Tools Rate Thread

Background Color change in query

 
 
cowichandave
Guest
Posts: n/a
 
      13th Dec 2009
Access 2007. In running a query the resulting table has a grey background. I
created a pushbutton to run the query and output results to an excel
spreadsheet and the grey background also transfers to excel. How do I turn
background colors off or change to no color.
Dave
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      14th Dec 2009
What code or macro are you using to export it to Excel?
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"cowichandave" wrote:

> Access 2007. In running a query the resulting table has a grey background. I
> created a pushbutton to run the query and output results to an excel
> spreadsheet and the grey background also transfers to excel. How do I turn
> background colors off or change to no color.
> Dave

 
Reply With Quote
 
cowichandave
Guest
Posts: n/a
 
      15th Dec 2009
I am using a macro with Outputto which I have attached to a pushbutton.

It appears that this transfers all the query table properties as they appear
on the screen (font type and size and background cell color)

As a new user, I have not been able to find out how to change those
properties on the query itself. It also apperars that Outputto is limited as
to modifying font type size and cell color.

How would one accomplish this easist way for an inexperienced user and if
using code where would it be placed?

All I want as the end result is the excel table to be Arial 10 and no
background color. Presently it is Calibi 10 with gray background
--
Dave


"Jerry Whittle" wrote:

> What code or macro are you using to export it to Excel?
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "cowichandave" wrote:
>
> > Access 2007. In running a query the resulting table has a grey background. I
> > created a pushbutton to run the query and output results to an excel
> > spreadsheet and the grey background also transfers to excel. How do I turn
> > background colors off or change to no color.
> > Dave

 
Reply With Quote
 
Jerry Whittle
Guest
Posts: n/a
 
      15th Dec 2009
The Template option only works for HTML files.

You could use the Auto Start option and have a macro in Excel reformat things.

I don't know if the Output Quality options make any difference.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"cowichandave" wrote:

> I am using a macro with Outputto which I have attached to a pushbutton.
>
> It appears that this transfers all the query table properties as they appear
> on the screen (font type and size and background cell color)
>
> As a new user, I have not been able to find out how to change those
> properties on the query itself. It also apperars that Outputto is limited as
> to modifying font type size and cell color.
>
> How would one accomplish this easist way for an inexperienced user and if
> using code where would it be placed?
>
> All I want as the end result is the excel table to be Arial 10 and no
> background color. Presently it is Calibi 10 with gray background
> --
> Dave
>
>
> "Jerry Whittle" wrote:
>
> > What code or macro are you using to export it to Excel?
> > --
> > Jerry Whittle, Microsoft Access MVP
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> >
> > "cowichandave" wrote:
> >
> > > Access 2007. In running a query the resulting table has a grey background. I
> > > created a pushbutton to run the query and output results to an excel
> > > spreadsheet and the grey background also transfers to excel. How do I turn
> > > background colors off or change to no color.
> > > Dave

 
Reply With Quote
 
cowichandave
Guest
Posts: n/a
 
      16th Dec 2009
The problem with that is the file is replaced each time the query is run so
the macro in excel is destroyed. Is there a way to add a query to an existing
file without overwriting it, maybe to have the query append an existing file
for example starting in line 4 or wherever row the data begins so that each
time the query is run then existing data would be overwritten but the macro
would remain and reformat the new data?

Is that a reasonable solution.
--
CowichanDave


"Jerry Whittle" wrote:

> The Template option only works for HTML files.
>
> You could use the Auto Start option and have a macro in Excel reformat things.
>
> I don't know if the Output Quality options make any difference.
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "cowichandave" wrote:
>
> > I am using a macro with Outputto which I have attached to a pushbutton.
> >
> > It appears that this transfers all the query table properties as they appear
> > on the screen (font type and size and background cell color)
> >
> > As a new user, I have not been able to find out how to change those
> > properties on the query itself. It also apperars that Outputto is limited as
> > to modifying font type size and cell color.
> >
> > How would one accomplish this easist way for an inexperienced user and if
> > using code where would it be placed?
> >
> > All I want as the end result is the excel table to be Arial 10 and no
> > background color. Presently it is Calibi 10 with gray background
> > --
> > Dave
> >
> >
> > "Jerry Whittle" wrote:
> >
> > > What code or macro are you using to export it to Excel?
> > > --
> > > Jerry Whittle, Microsoft Access MVP
> > > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> > >
> > >
> > > "cowichandave" wrote:
> > >
> > > > Access 2007. In running a query the resulting table has a grey background. I
> > > > created a pushbutton to run the query and output results to an excel
> > > > spreadsheet and the grey background also transfers to excel. How do I turn
> > > > background colors off or change to no color.
> > > > Dave

 
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
Change background color of query results from access in worksheet Chuck W Microsoft Excel Discussion 1 23rd Apr 2010 11:21 PM
Checkbox to change background color, font color and remove/ add bo Sara Microsoft Excel Misc 1 11th Nov 2008 08:17 PM
How do I change the background color and font color in word docum MarieInLaguna Microsoft Word Document Management 1 13th Aug 2008 05:02 PM
how can I conditionally change font color, or background color? =?Utf-8?B?TU9IQQ==?= Microsoft Excel Worksheet Functions 6 21st Aug 2006 06:57 PM
RE: change notepad background color/text color Jonathan Windows XP Customization 1 4th Oct 2003 12:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 AM.