Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Changing the value in multiple sheets without selecting those sheets

I have a workbook with 10 sheets and currently use the formula

sheets("sheet2").select
Range ("a1").select
Activecell.formularR1c1= "true"

and repeat this for sheet3,4,5 and so on
Note not all the values are identical some are true and some false

Because the VBA sub has to then jump to every sheet and then enter the
value it creates a flashing effect that irritates the hell out of me

Is there a code where it will make those changes in other sheets
without activating those sheets first

PLEASE Help
Thanks
Herman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing the value in multiple sheets without selecting those sheets

You can prevent display updating by adding row

Application.Screenupdating=False

in the beginning of your code.

Ecco

-----Original Message-----
I have a workbook with 10 sheets and currently use the

formula

sheets("sheet2").select
Range ("a1").select
Activecell.formularR1c1= "true"

and repeat this for sheet3,4,5 and so on
Note not all the values are identical some are true and

some false

Because the VBA sub has to then jump to every sheet and

then enter the
value it creates a flashing effect that irritates the

hell out of me

Is there a code where it will make those changes in other

sheets
without activating those sheets first

PLEASE Help
Thanks
Herman
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Changing the value in multiple sheets without selecting those sheets

Hi,

1. You stop the flashing by using

Application.Screenupdating=False

at the beginning of the code.
Do not forget to add

Application.Screenupdating=True

at the end.

2. There is no need to select things:

sheets("sheet2").select
Range ("a1").select
Activecell.formularR1c1= "true"

Can be improved to:

sheets("sheet2").Range("a1").formulaR1c1= "true"


Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
I have a workbook with 10 sheets and currently use the

formula

sheets("sheet2").select
Range ("a1").select
Activecell.formularR1c1= "true"

and repeat this for sheet3,4,5 and so on
Note not all the values are identical some are true and

some false

Because the VBA sub has to then jump to every sheet and

then enter the
value it creates a flashing effect that irritates the

hell out of me

Is there a code where it will make those changes in other

sheets
without activating those sheets first

PLEASE Help
Thanks
Herman
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing the value in multiple sheets without selecting those sheets


Thanks Jan Karel

Or shall I say dankie boet

You realy gave me a good tip there it works like a charm


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Change Header on Multiple Sheets without Changing Other Formatting David Excel Discussion (Misc queries) 1 April 22nd 10 12:51 AM
vba for selecting multiple sheets to save as a new book Sharon Excel Worksheet Functions 5 March 16th 07 12:53 AM
Changing dates on multiple sheets andyco11 New Users to Excel 3 March 1st 07 07:11 PM
Selecting Multiple Sheets in VBA Gizmo63 Excel Worksheet Functions 4 May 8th 06 01:50 PM
selecting multiple sheets Shaun Excel Worksheet Functions 1 August 31st 05 04:09 PM


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