Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Fill down formulas without activating the sheet

At the moment I have a bunch of formulas along the top row of a sheet and I
wish to copy them down a predfined number of rows. At the moment I activate
the sheet and then select the rows I want to copy down with the row
containing the formulas at the top and the just use fill down.

It would be much cooler if I could accomplish this in the background as it
were without having to select the
sheet. Is there a way of effectively filling down the formula without having
to activate the sheet?

Any help much appreciated, kind regards, Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Fill down formulas without activating the sheet

You do have to Activate the sheet for a FillDown. However, if you are on a
different sheet you don't have to see what happens. For example: you are on
Sheet1 but you want to FillDown the formulas on Sheet2, while displaying
Sheet1:

Sub test()
Application.ScreenUpdating = False
With Worksheets("sheet2")
..Activate
..Range("B2:L2").AutoFill Destination:=Range("B2:L29")
End With
Worksheets("sheet1").Activate
Application.ScreenUpdating = True
End Sub

Mike F
"Mark Stephens" wrote in message
...
At the moment I have a bunch of formulas along the top row of a sheet and
I wish to copy them down a predfined number of rows. At the moment I
activate
the sheet and then select the rows I want to copy down with the row
containing the formulas at the top and the just use fill down.

It would be much cooler if I could accomplish this in the background as it
were without having to select the
sheet. Is there a way of effectively filling down the formula without
having to activate the sheet?

Any help much appreciated, kind regards, Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Fill down formulas without activating the sheet



Thanks for your help, kind regards, Mark

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Fill down formulas without activating the sheet

You might try this instead:

Sub test()
Worksheets("Sheet1").Activate
With Worksheets("sheet2")
..Range("B2:L29").FillDown
End With
End Sub

--
Regards,
Tom Ogilvy

"Mark Stephens" wrote in message
...


Thanks for your help, kind regards, Mark

*** Sent via Developersdex http://www.developersdex.com ***



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
autorun upon activating a sheet cdde[_6_] Excel Programming 0 November 10th 04 11:43 PM
autorun upon activating a sheet cdde[_5_] Excel Programming 1 November 10th 04 07:34 PM
Activate Macro on Activating a sheet Bob Phillips[_6_] Excel Programming 0 June 4th 04 05:19 PM
Problem activating a sheet jowatkins[_6_] Excel Programming 1 January 19th 04 01:33 PM
Problem in activating a sheet Neeleshwar Thakur Excel Programming 1 December 18th 03 12:43 PM


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