The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Access Forum > Access Database Functions
  Chat In Use Now! Microsoft Office Chat Online now!


Access Database Functions Post questions in this forum if they are related to using Microsoft Access Database functions and operations.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18th January 2010, 05:26 PM
Clif McIrvin
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Using Excel GoalSeek on Access Form

------ Register to get rid of these "In Post" ads! ------


XP Pro SP2, Access 2003 SP3.

I'm looking to convert an Excel worksheet into an Access form.

I have a strategy in mind for everything the worksheet does, except for
the GoalSeek code behind one of the cells.

Does anyone have experience with doing this sort of thing?

I can supply additional details, including my VBA macro in the worksheet
if that will help.

--
Clif


Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 18th January 2010, 06:12 PM
sduis
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Using Excel GoalSeek on Access Form

------ Register to get rid of these "In Post" ads! ------



"Clif McIrvin" <clare.moe@nevergmail.com.invalid> schreef in bericht
news:evgoepFmKHA.1536@TK2MSFTNGP06.phx.gbl...
> XP Pro SP2, Access 2003 SP3.
>
> I'm looking to convert an Excel worksheet into an Access form.
>
> I have a strategy in mind for everything the worksheet does, except for
> the GoalSeek code behind one of the cells.
>
> Does anyone have experience with doing this sort of thing?
>
> I can supply additional details, including my VBA macro in the worksheet
> if that will help.
>
> --
> Clif
>


Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 18th January 2010, 09:38 PM
Larry Linson
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Using Excel GoalSeek on Access Form

------ Register to get rid of these "In Post" ads! ------


I know there is no feature in the Office suite for converting an Excel
worksheet into an Access form; for an Excel worksheet which has data in
columns and rows, you can import or link the data from Access. (That will
not, of course, work if you have code or formulas behind many cells on the
worksheet.)

Because Excel is COM-compatible, if you know the object model and can
accomplish what you want to do with Excel itself, you can automate (most or
all) Excel functionality from Access, so you may be able to accomplish your
purpose by performing the function via code from Access.

Access itself, however, does not have, nor allow you to directly use,
Excel's GoalSeek.

Larry Linson
Microsoft Office Access MVP

"Clif McIrvin" <clare.moe@nevergmail.com.invalid> wrote in message
news:evgoepFmKHA.1536@TK2MSFTNGP06.phx.gbl...
> XP Pro SP2, Access 2003 SP3.
>
> I'm looking to convert an Excel worksheet into an Access form.
>
> I have a strategy in mind for everything the worksheet does, except for
> the GoalSeek code behind one of the cells.
>
> Does anyone have experience with doing this sort of thing?
>
> I can supply additional details, including my VBA macro in the worksheet
> if that will help.
>
> --
> Clif
>




Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #4 (permalink)  
Old 18th January 2010, 10:49 PM
Tom Wickerath
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Using Excel GoalSeek on Access Form

------ Register to get rid of these "In Post" ads! ------


Hi Cliff,

Larry wrote:
> Access itself, however, does not have, nor allow you to directly use,
> Excel's GoalSeek.


This article may be useful to you:

How to call Excel functions from within Access
http://support.microsoft.com/kb/198571

I imagine that the Goalseek function would likely need an array of data
passed. That can be a little tricky when the array is not hard-coded values,
versus the examples shown in the above KB article, but still do-able.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________

"Larry Linson" wrote:

> I know there is no feature in the Office suite for converting an Excel
> worksheet into an Access form; for an Excel worksheet which has data in
> columns and rows, you can import or link the data from Access. (That will
> not, of course, work if you have code or formulas behind many cells on the
> worksheet.)
>
> Because Excel is COM-compatible, if you know the object model and can
> accomplish what you want to do with Excel itself, you can automate (most or
> all) Excel functionality from Access, so you may be able to accomplish your
> purpose by performing the function via code from Access.
>
> Access itself, however, does not have, nor allow you to directly use,
> Excel's GoalSeek.
>
> Larry Linson
> Microsoft Office Access MVP
>
> "Clif McIrvin" <clare.moe@nevergmail.com.invalid> wrote in message
> news:evgoepFmKHA.1536@TK2MSFTNGP06.phx.gbl...
> > XP Pro SP2, Access 2003 SP3.
> >
> > I'm looking to convert an Excel worksheet into an Access form.
> >
> > I have a strategy in mind for everything the worksheet does, except for
> > the GoalSeek code behind one of the cells.
> >
> > Does anyone have experience with doing this sort of thing?
> >
> > I can supply additional details, including my VBA macro in the worksheet
> > if that will help.
> >
> > --
> > Clif
> >

>
>
>
> .
>

Reply to this post


Did you find this post helpful? Yes | No
  #5 (permalink)  
Old 19th January 2010, 01:08 AM
Clif McIrvin
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Using Excel GoalSeek on Access Form

------ Register to get rid of these "In Post" ads! ------


Tom, Larry - Thank you!

I am familiar with passing paramater arrays to Excel functions from
Access .. for example, to the MIN, MAX and AVERAGE worksheet functions,
and the use of wrapper functions so they can be called from queries.

On more careful examination, I mis-spoke ... GoalSeek is a method, not a
function, that depends on worksheet functions, and unlike worksheet
functions, does not appear to have provision for accepting a parameter
array.

It appears that I have two (visible) options:
a) automate an excel worksheet populated with the necessary functions
for the goal seek to do its thing, or
b) write situation specific code for my form to emulate the goal seek.

I've got time to wait and see if anyone else has been down this road and
responds here before I need to craft my solution.

Thanks again for your suggestions.

...
Clif

"Tom Wickerath" <AOS168b AT comcast DOT net> wrote in message
news:70F19198-8944-4243-B44A-3F1CD8BA38D0@microsoft.com...
> Hi Cliff,
>
> Larry wrote:
>> Access itself, however, does not have, nor allow you to directly use,
>> Excel's GoalSeek.

>
> This article may be useful to you:
>
> How to call Excel functions from within Access
> http://support.microsoft.com/kb/198571
>
> I imagine that the Goalseek function would likely need an array of
> data
> passed. That can be a little tricky when the array is not hard-coded
> values,
> versus the examples shown in the above KB article, but still do-able.
>
>
> Tom Wickerath
> Microsoft Access MVP
> http://www.accessmvp.com/TWickerath/
> __________________________________________
>
> "Larry Linson" wrote:
>
>> I know there is no feature in the Office suite for converting an
>> Excel
>> worksheet into an Access form; for an Excel worksheet which has data
>> in
>> columns and rows, you can import or link the data from Access. (That
>> will
>> not, of course, work if you have code or formulas behind many cells
>> on the
>> worksheet.)
>>
>> Because Excel is COM-compatible, if you know the object model and can
>> accomplish what you want to do with Excel itself, you can automate
>> (most or
>> all) Excel functionality from Access, so you may be able to
>> accomplish your
>> purpose by performing the function via code from Access.
>>
>> Access itself, however, does not have, nor allow you to directly use,
>> Excel's GoalSeek.
>>
>> Larry Linson
>> Microsoft Office Access MVP
>>
>> "Clif McIrvin" <clare.moe@nevergmail.com.invalid> wrote in message
>> news:evgoepFmKHA.1536@TK2MSFTNGP06.phx.gbl...
>> > XP Pro SP2, Access 2003 SP3.
>> >
>> > I'm looking to convert an Excel worksheet into an Access form.
>> >
>> > I have a strategy in mind for everything the worksheet does, except
>> > for
>> > the GoalSeek code behind one of the cells.
>> >
>> > Does anyone have experience with doing this sort of thing?
>> >
>> > I can supply additional details, including my VBA macro in the
>> > worksheet
>> > if that will help.
>> >
>> > --
>> > Clif
>> >

>>
>>
>>
>> .
>>




--
Clif


Reply to this post


Did you find this post helpful? Yes | No

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
access, excel, form, goalseek


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent