Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Like to put it in VBA please

Hello from Steved

How would I go about putting the below into VBA please.

=IF(ISNUMBER(SMALL(IF($S$6:$S$106="","",ROW($S$6:$ S$106)),ROW(1:1))),INDIRECT("Summary!"&CHAR(COLUMN ()+64)&SMALL(IF($S$6:$S$106="","",ROW($S$6:$S$106) ),ROW(1:1))),"")

Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Like to put it in VBA please

will this work for you?

Sub test()
Range("A1").Formula = "=IF(ISNUMBER(SMALL(IF($S$6:$S$106="""",""""," & _
"ROW($S$6:$S$106)),ROW(1:1))),INDIRECT(""Summary!" "&CHAR(COLUMN()+64)&SMALL(IF($S$6:$S$106="""","""" ,"
& _
"ROW($S$6:$S$106)),ROW(1:1))),"""")"

End Sub

--


Gary


"Steved" wrote in message
...
Hello from Steved

How would I go about putting the below into VBA please.

=IF(ISNUMBER(SMALL(IF($S$6:$S$106="","",ROW($S$6:$ S$106)),ROW(1:1))),INDIRECT("Summary!"&CHAR(COLUMN ()+64)&SMALL(IF($S$6:$S$106="","",ROW($S$6:$S$106) ),ROW(1:1))),"")

Thankyou.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Like to put it in VBA please

Hello Gary from Steved

Gary The below is run from the sheet I have named summary

I have ten sheets hence I need a event procedure, so if
somebody types in summary sheet it is then updated in another sheet

Each sheet is represented by a City name and have a formula in each off the
sheets
to put the data only associated with the city. ie if somebody types in the
Summary sheet something for say a sheet i've called Washington the the data
will go into that sheet.

Hopefully you have alook at this further.

Thankyou.

"Gary Keramidas" wrote:

will this work for you?

Sub test()
Range("A1").Formula = "=IF(ISNUMBER(SMALL(IF($S$6:$S$106="""",""""," & _
"ROW($S$6:$S$106)),ROW(1:1))),INDIRECT(""Summary!" "&CHAR(COLUMN()+64)&SMALL(IF($S$6:$S$106="""","""" ,"
& _
"ROW($S$6:$S$106)),ROW(1:1))),"""")"

End Sub

--


Gary


"Steved" wrote in message
...
Hello from Steved

How would I go about putting the below into VBA please.

=IF(ISNUMBER(SMALL(IF($S$6:$S$106="","",ROW($S$6:$ S$106)),ROW(1:1))),INDIRECT("Summary!"&CHAR(COLUMN ()+64)&SMALL(IF($S$6:$S$106="","",ROW($S$6:$S$106) ),ROW(1:1))),"")

Thankyou.




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



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