Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pw pw is offline
external usenet poster
 
Posts: 2
Default Stopping "Link Worksheets?" message box (using automation)

Hi,

I am using Visual FoxPro 7 and Excel 2000. I am using GetObject
(code below) to copy a range of cells to a table. When the program is
running, the user is asked if he/she wants to link the worksheets.

How can I stop this and all message boxes. I can not find anything
about parameters, etc... in the Excel or VFP help files.

Thanks,

-paul w


*--
loWorkBook = GetObject('&lsheetloc')

With loWorkBook
.Sheets(2).Select
EndWith

With loWorkBook.ActiveSheet.Range("A2:A65536")
.NumberFormat = "Mm/Dd/Yyyy"
EndWith

loWorkBook.Close(.T.)

Append From '&lsheetloc' Type XL8 SHEET "PortfolioReturn"

pw
livingston,montana
please use "pw at williamsonenterprises dot com" for e-mail
thanks


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  #2   Report Post  
Posted to microsoft.public.excel.programming
pw pw is offline
external usenet poster
 
Posts: 2
Default Stopping "Link Worksheets?" message box (using automation)


Paul,

I am mot sure but this might help:

Application.DisplayAlerts = False/True

John


Okay John! I will try and do the same in Visual FoxPro (I am
primarily developing in Access 97 these days so I should be able to
figure out the syntax conversion!).

Thanks!

-pw





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

I am using Visual FoxPro 7 and Excel 2000. I am using

GetObject
(code below) to copy a range of cells to a table. When

the program is
running, the user is asked if he/she wants to link the

worksheets.

How can I stop this and all message boxes. I can not

find anything
about parameters, etc... in the Excel or VFP help files.

Thanks,

-paul w


*--
loWorkBook = GetObject('&lsheetloc')

With loWorkBook
.Sheets(2).Select
EndWith

With loWorkBook.ActiveSheet.Range("A2:A65536")
.NumberFormat = "Mm/Dd/Yyyy"
EndWith

loWorkBook.Close(.T.)

Append From '&lsheetloc' Type XL8

SHEET "PortfolioReturn"

pw
livingston,montana
please use "pw at williamsonenterprises dot com" for e-

mail
thanks


----== Posted via Newsfeed.Com - Unlimited-Uncensored-

Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the

World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total

Privacy via Encryption =---
.



pw
livingston,montana
please use "pw at williamsonenterprises dot com" for e-mail
thanks


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Reply
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
how can I avoid "server busy" message during ole automation Stefan Excel Discussion (Misc queries) 0 April 17th 07 11:16 AM
Stopping "Query Refresh" messages fmistry Excel Discussion (Misc queries) 2 March 6th 07 03:38 PM
problem with Linking workbooks via "copy" and "paste link" Arkitek Excel Discussion (Misc queries) 0 December 19th 06 10:03 PM
Stopping the "This removes the subtotal and sorts again." notifica Hoppy Excel Discussion (Misc queries) 1 August 3rd 06 08:55 PM
"unable to paste link" Excel error message Refund Partners Excel Discussion (Misc queries) 0 June 7th 06 09:44 PM


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

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

About Us

"It's about Microsoft Excel"