Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Excel Worksheet Copy Search Help

Kind of wondering if this is possible. Im new to the excel programming
a little. It throws me an error on the line where i try to look onto
another sheet. any ideas


For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value = cboRefine
Then
For z = 1 To 13
Worksheets("Results").Cells(i, z).Value = Worksheets("By
Store").Cells(i, z).Value
Next
End If
Next

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Excel Worksheet Copy Search Help

Dim Var1 as string
For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value = cboRefine
Then
For z = 1 To 13
Var1 = Cells(i,z).value
Sheets("Results").Activate
Worksheets("Results").Cells(i, z).Value = Var1
Sheets("By Store").Activate
Next
End If
Next

HTH

Die_Another_Day

Brandon Johnson wrote:
Kind of wondering if this is possible. Im new to the excel programming
a little. It throws me an error on the line where i try to look onto
another sheet. any ideas


For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value = cboRefine
Then
For z = 1 To 13
Worksheets("Results").Cells(i, z).Value = Worksheets("By
Store").Cells(i, z).Value
Next
End If
Next


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Excel Worksheet Copy Search Help

on the line:

If Worksheets("By Store").Cells(i, column).Value = cboRefine

you haven't defined what "column" is.

"Brandon Johnson" wrote:

Kind of wondering if this is possible. Im new to the excel programming
a little. It throws me an error on the line where i try to look onto
another sheet. any ideas


For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value = cboRefine
Then
For z = 1 To 13
Worksheets("Results").Cells(i, z).Value = Worksheets("By
Store").Cells(i, z).Value
Next
End If
Next


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Excel Worksheet Copy Search Help

ok everything worked everyone. thankyou so much


Charlie wrote:
on the line:

If Worksheets("By Store").Cells(i, column).Value = cboRefine

you haven't defined what "column" is.

"Brandon Johnson" wrote:

Kind of wondering if this is possible. Im new to the excel programming
a little. It throws me an error on the line where i try to look onto
another sheet. any ideas


For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value = cboRefine
Then
For z = 1 To 13
Worksheets("Results").Cells(i, z).Value = Worksheets("By
Store").Cells(i, z).Value
Next
End If
Next



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
How do I search for a .bmp in a worksheet using VBA in Excel PS Excel Programming 4 April 8th 06 08:09 PM
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Search and Copy within Excel using VBA sapper44 Excel Programming 2 July 23rd 05 04:47 PM
Create a search Field within a worksheet to search command buttons Ed P[_2_] Excel Programming 1 December 14th 04 08:04 PM
Excel Copy/Search/Paste Help Needed ASAP! NWill Excel Programming 2 September 23rd 04 05:06 PM


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