A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help Me!!!!!!!!!



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2010, 08:50 AM posted to microsoft.public.access.gettingstarted
Achit via AccessMonster.com
external usenet poster
 
Posts: 4
Default Help Me!!!!!!!!!

I Have 2 question
1.I want maximize view of form, when I move to another computer, the view of
form not flexible, it means on computer A the view is normal(maximize), but
on computer B the view is mess.What should I do????

2.How to open excel files using command button on access vba.
I have syntax
Dim stAppName as string

stAppName="Excel.exe C:\Myspreedsheet.xls"
Call shell(stAppName, vbMaximizedFocus)

it works but When I use:
stAppName="Excel.exe C:\Audit\Myspreedsheet.xls"
it doesn't work..What should I do if I want open file in folder or subfolder??
??

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/201004/1

  #2  
Old April 29th, 2010, 06:07 PM posted to microsoft.public.access.gettingstarted
fredg
external usenet poster
 
Posts: 4,386
Default Help Me!!!!!!!!!

On Thu, 29 Apr 2010 07:50:21 GMT, Achit via AccessMonster.com wrote:

I Have 2 question
1.I want maximize view of form, when I move to another computer, the view of
form not flexible, it means on computer A the view is normal(maximize), but
on computer B the view is mess.What should I do????

2.How to open excel files using command button on access vba.
I have syntax
Dim stAppName as string

stAppName="Excel.exe C:\Myspreedsheet.xls"
Call shell(stAppName, vbMaximizedFocus)

it works but When I use:
stAppName="Excel.exe C:\Audit\Myspreedsheet.xls"
it doesn't work..What should I do if I want open file in folder or subfolder??
??


Is the file name Myspreedsheet or Myspreadsheet?
Make sure you've spelled it correctly.
Is it in a Folder named "Audit"?
Assuming the file is actually named MySpreadsheet, why not simply use:

Application.FollowHyperlink "c:\Audit\MySpreadsheet.xls"

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old April 29th, 2010, 06:43 PM posted to microsoft.public.access.gettingstarted
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Help Me!!!!!!!!!

"Achit via AccessMonster.com" u58969@uwe wrote in message
news:a73ead486076d@uwe...
I Have 2 question
1.I want maximize view of form, when I move to another computer, the view
of
form not flexible, it means on computer A the view is normal(maximize),
but
on computer B the view is mess.What should I do????

2.How to open excel files using command button on access vba.
I have syntax
Dim stAppName as string

stAppName="Excel.exe C:\Myspreedsheet.xls"
Call shell(stAppName, vbMaximizedFocus)

it works but When I use:
stAppName="Excel.exe C:\Audit\Myspreedsheet.xls"
it doesn't work..What should I do if I want open file in folder or
subfolder??
??



1. You need to give a more full description of what you mean. I can't make
sense of it.

2. There are two possibilities: (a) you misspelled something, or (b) the
path you posted isn't the real path, and the real path contains spaces. If
the path contains spaces, you need to enclose it in quotes *within* the
string you pass to Shell. For example:

stAppName="Excel.exe ""C:\Path With Spaces\Myspreedsheet.xls"""

By doubling up the quotes in the quotes string, one quote is embedded.

Off-topic Comment:
The subject line of your post is uninformative and annoying. Most people
posting want help. Adding exclamation points doesnt make your post more
deserving than others'. A subject line summarizing the problem or topic is
much more useful.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.