Solved

export error

Posted on 2011-03-16
2
285 Views
Last Modified: 2012-05-11
Hi,

I have a macro called autoexec

On the TransferSpreadsheet Action i have file name

G:\Asset Services MI\UnMatched Merit\balances.xls

Now, that ss already exists. So i get an error message saying table already exists and it halts execution

How can i get it so the macro ignores this and overwtites the file

Thanks
Seamus
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35149439
try placing set warnings before and after the transferspreadsheet
with first warnings on set to yes and the second setwarnings on to No

SetWarnings
TransferSpreadsheet
SetWarnings
0
 

Author Closing Comment

by:Seamus2626
ID: 35149622
Excellent, thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question