Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Avoiding the 'Update Values' dialogue

My Code shown below (simply copying the formulas from the line above to a
number of newly inserted rows):-

The problem is that my users ocasionally add links to other workbooks
somewhere in the row which I am copying (for good reasons of their own). The
xlPasteformulas line then causes the 'Update Values' dialogue to pop up,
which needs to be cancelled before the macro will proceed. This routine runs
unattended at night, so this is not good ! Is there a way I can switch the
update values to default to cancel or no on the copy ? I have tried setting
application.displayalerts to False in the line above the paste, but that
doesn't help.


Rows(Insertpoint - 1).Select
Selection.Copy
Rows(Insertpoint & ":" & (Insertpoint + NumberOfRows)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone,
SkipBlanks:= _
True, Transpose:=False, update=False
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Avoiding the 'Update Values' dialogue


Application.DisplayAlerts = False

'your macro

at the end of the macro

Application.DisplayAlerts = True


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=539622

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Avoiding the 'Update Values' dialogue

I don't think I have ever run into that problem. What version of excel are
you using?

What do you want to happen to cells that raise that message - do you want
them to update or do you want to not copy the formula to avoid the problem.
Did you previously open the workbook with UpdateLinks set to 0 (suppress the
udating of links).

--
Regards,
Tom Ogilvy


"Quiller38" wrote:

My Code shown below (simply copying the formulas from the line above to a
number of newly inserted rows):-

The problem is that my users ocasionally add links to other workbooks
somewhere in the row which I am copying (for good reasons of their own). The
xlPasteformulas line then causes the 'Update Values' dialogue to pop up,
which needs to be cancelled before the macro will proceed. This routine runs
unattended at night, so this is not good ! Is there a way I can switch the
update values to default to cancel or no on the copy ? I have tried setting
application.displayalerts to False in the line above the paste, but that
doesn't help.


Rows(Insertpoint - 1).Select
Selection.Copy
Rows(Insertpoint & ":" & (Insertpoint + NumberOfRows)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone,
SkipBlanks:= _
True, Transpose:=False, update=False

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Avoiding the 'Update Values' dialogue

It is Excel 2003. As you guessed I open the workbook with UpdateLinks:= 0 to
avoid the update links dialogue popping up on the open. What I want is to
paste formulas without Updating Links.

"Tom Ogilvy" wrote:

I don't think I have ever run into that problem. What version of excel are
you using?

What do you want to happen to cells that raise that message - do you want
them to update or do you want to not copy the formula to avoid the problem.
Did you previously open the workbook with UpdateLinks set to 0 (suppress the
udating of links).

--
Regards,
Tom Ogilvy


"Quiller38" wrote:

My Code shown below (simply copying the formulas from the line above to a
number of newly inserted rows):-

The problem is that my users ocasionally add links to other workbooks
somewhere in the row which I am copying (for good reasons of their own). The
xlPasteformulas line then causes the 'Update Values' dialogue to pop up,
which needs to be cancelled before the macro will proceed. This routine runs
unattended at night, so this is not good ! Is there a way I can switch the
update values to default to cancel or no on the copy ? I have tried setting
application.displayalerts to False in the line above the paste, but that
doesn't help.


Rows(Insertpoint - 1).Select
Selection.Copy
Rows(Insertpoint & ":" & (Insertpoint + NumberOfRows)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone,
SkipBlanks:= _
True, Transpose:=False, update=False

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
Update values from one column to another smartin Excel Worksheet Functions 0 July 11th 09 11:59 PM
Avoiding negative values in IF statements help needed [email protected] Excel Worksheet Functions 5 November 23rd 08 10:04 AM
Values in spreadsheets do not update Sandy at the Chrome Excel Worksheet Functions 5 July 11th 06 02:37 PM
avoiding plotting zero values on graphs Lee Charts and Charting in Excel 1 November 22nd 05 02:15 AM
Avioding "Version Update" Dialogue Box Sat Excel Programming 2 July 31st 04 08:35 PM


All times are GMT +1. The time now is 07:12 PM.

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

About Us

"It's about Microsoft Excel"