Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro Effecting Formatting

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Macro Effecting Formatting

Are you toggling the application settings for calculation and screen updating
without resetting them?

Application.Screenupdating = True
application.calculation = xlAutomatic
--
HTH...

Jim Thomlinson


"whornak" wrote:

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro Effecting Formatting

Utilizing the With/EndWith I am setting the following to false at beginning
and back to true at end.

.ScreenUpdating = True
.DisplayAlerts = True

"Jim Thomlinson" wrote:

Are you toggling the application settings for calculation and screen updating
without resetting them?

Application.Screenupdating = True
application.calculation = xlAutomatic
--
HTH...

Jim Thomlinson


"whornak" wrote:

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Macro Effecting Formatting

Do you use any End(s) in your code that may be causing the code to end before
these lines are reached? Do you have any error handling code that would be
circumventing reaching those 2 lines of code.

I assume that your calaculation is set to automatic. Tools -Options
-Calculation
--
HTH...

Jim Thomlinson


"whornak" wrote:

Utilizing the With/EndWith I am setting the following to false at beginning
and back to true at end.

.ScreenUpdating = True
.DisplayAlerts = True

"Jim Thomlinson" wrote:

Are you toggling the application settings for calculation and screen updating
without resetting them?

Application.Screenupdating = True
application.calculation = xlAutomatic
--
HTH...

Jim Thomlinson


"whornak" wrote:

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro Effecting Formatting

No error trapping and no way to avoid hitting those 2 lines of code.
Calculations are set to automatic.

"Jim Thomlinson" wrote:

Do you use any End(s) in your code that may be causing the code to end before
these lines are reached? Do you have any error handling code that would be
circumventing reaching those 2 lines of code.

I assume that your calaculation is set to automatic. Tools -Options
-Calculation
--
HTH...

Jim Thomlinson


"whornak" wrote:

Utilizing the With/EndWith I am setting the following to false at beginning
and back to true at end.

.ScreenUpdating = True
.DisplayAlerts = True

"Jim Thomlinson" wrote:

Are you toggling the application settings for calculation and screen updating
without resetting them?

Application.Screenupdating = True
application.calculation = xlAutomatic
--
HTH...

Jim Thomlinson


"whornak" wrote:

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro Effecting Formatting

In doing some testing I found that when I perform the following steps I can
reproduce the error. Without running any code.

1) Create new workbook
2) Copy data from Access XP result set by: Select all then copy
3) Paste into workbook
4) Formatting issue appears.

"whornak" wrote:

No error trapping and no way to avoid hitting those 2 lines of code.
Calculations are set to automatic.

"Jim Thomlinson" wrote:

Do you use any End(s) in your code that may be causing the code to end before
these lines are reached? Do you have any error handling code that would be
circumventing reaching those 2 lines of code.

I assume that your calaculation is set to automatic. Tools -Options
-Calculation
--
HTH...

Jim Thomlinson


"whornak" wrote:

Utilizing the With/EndWith I am setting the following to false at beginning
and back to true at end.

.ScreenUpdating = True
.DisplayAlerts = True

"Jim Thomlinson" wrote:

Are you toggling the application settings for calculation and screen updating
without resetting them?

Application.Screenupdating = True
application.calculation = xlAutomatic
--
HTH...

Jim Thomlinson


"whornak" wrote:

When creating a new workbook, inserting code that will apply
formatting/filtering/sorting/calculations, insert result set into sheet,
launch macro: I experience some weird results.

1) At most but not all calculations don't work even thought the formula
appears correct.
2) All cells, including those involved in the formula, won't show the format
dialog when: Right click, select Format Cells, GET NOTHING.

Excel 2000.

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
Rounding Effecting Sum Steve Graves Excel Discussion (Misc queries) 2 November 20th 09 04:03 PM
new row without effecting equations NJK Excel Discussion (Misc queries) 1 July 15th 08 06:43 PM
Profile effecting Excel Spike Excel Discussion (Misc queries) 2 November 23rd 05 05:18 PM
Text to Column effecting automatically Hari Excel Discussion (Misc queries) 6 June 2nd 05 09:54 AM
Pilgrim needs help: Effecting keystroks required by a macro nested within a macro. [email protected] Excel Programming 1 May 14th 05 03:46 AM


All times are GMT +1. The time now is 02:21 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"