LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Problem in Range VBA excell...

Hi JM,

The code was intended as:

'=============
Public Sub Tester()
Dim SH As Worksheet
Dim i As Long

Set SH = ActiveSheet '<<==== CHANGE

i = Worksheets("Geral").Range("AE3").Value


SH.Range("A1:C1").AutoFill Destination:=Range("A1:C" & i), _
Type:=xlFillDefault
End Sub
'<<=============


---
Regards,
Norman


 
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
problem in Excell 2003 Bob[_18_] Excel Discussion (Misc queries) 4 October 15th 09 08:36 PM
Excell worksheet problem parttimer Excel Discussion (Misc queries) 2 September 22nd 09 04:37 PM
excell network problem mtevensorrison Excel Discussion (Misc queries) 2 February 23rd 06 09:07 AM
Excell version problem??? Mabe-GE Excel Worksheet Functions 4 January 24th 06 11:19 PM
Excell Workbook problem dcost Excel Worksheet Functions 1 June 20th 05 09:30 PM


All times are GMT +1. The time now is 03:44 AM.

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"