LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Please help

Hi

A minor change to your code should do it. Change the sheet name to
suit.

Take care

Marcus

Sub InsuranceForward()

Dim wslist As Worksheet 'Worksheet with list
Dim RngToSearch As Range
Dim Rngfound As Range
Dim WksTotals As Worksheet
Dim Month As String
'Change the sheet name to suit.
Set WksTotals = Worksheets("Sheet1")
Month = Range("B5").Value
Set RngToSearch = Range("AF2:AF13")
Set Rngfound = RngToSearch.Find(What:=Month)
WksTotals.Range("I31").Copy Destination:=Rngfound.Offset(0, 1)

End Sub



 
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 08:13 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"