ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Running Access-to-Excel Automation.... (https://www.excelbanter.com/excel-discussion-misc-queries/94480-running-access-excel-automation.html)

Bob Barnes

Running Access-to-Excel Automation....
 
Rarely, when this cose is run...

Range("DTop").Select
....Occurs directly below....
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

I get...
"Do you want to replace the contents of the destination cells?"

What causes this, & how can it be turned OFF?

TIA - Bob


Kevin B

Running Access-to-Excel Automation....
 
Add the following line above your paste command:


Application.DisplayAlerts = False

--
Kevin Backmann


"Bob Barnes" wrote:

Rarely, when this cose is run...

Range("DTop").Select
...Occurs directly below....
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

I get...
"Do you want to replace the contents of the destination cells?"

What causes this, & how can it be turned OFF?

TIA - Bob


Bob Barnes

Running Access-to-Excel Automation....
 
BEAUTIFUL.

Kevin - thank you.

Bob

"Kevin B" wrote:

Add the following line above your paste command:


Application.DisplayAlerts = False

--
Kevin Backmann


"Bob Barnes" wrote:

Rarely, when this cose is run...

Range("DTop").Select
...Occurs directly below....
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

I get...
"Do you want to replace the contents of the destination cells?"

What causes this, & how can it be turned OFF?

TIA - Bob



All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com