Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Find And Replace

Hello from Steved

Find in column C and enter Data in Column B

Highlited Col C and then using the find dialog box I type in say 748, it
finds it on row 247, now I would like to type in Col B 5478, but I need to
close the dialog box then goto the left type in Col B 5478, then start the
whole process again. How anyone out their work out a nice formula or
application that will allow to find in Col C and then Type in Data to the
left in Col B. An example would be Col C 247 and Data to be typed in Col B
247 ie 5478.

Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Find And Replace

Hi
You could use the AutoFilter instead: menu Data Filter AutoFilter
Select a value from the dropdown in the C col so that only these rows are
displayed, then enter data in col B, then choose a new value from the drop
down...
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

Find in column C and enter Data in Column B

Highlited Col C and then using the find dialog box I type in say 748, it
finds it on row 247, now I would like to type in Col B 5478, but I need to
close the dialog box then goto the left type in Col B 5478, then start the
whole process again. How anyone out their work out a nice formula or
application that will allow to find in Col C and then Type in Data to the
left in Col B. An example would be Col C 247 and Data to be typed in Col B
247 ie 5478.

Thankyou.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Find And Replace

Hello from Steved

I believe the macro below is one off this forum

Would it be possible to develop so that in this case part find in Col C it
then
allows one to type say 1905 and place in cell Col B, as at the moment using
your macro it finds what I want which is fine. As an example the dialog box
comes up I then type in 041 in finds it in Row C567, what I would like to
happen now is I type in 1901 and it inputsit in B567. Please



Sub FindPart()
Dim res
Dim RgToSearch As Range, RgFound As Range

Set RgToSearch = ActiveSheet.Range("C:C")

res = Application.InputBox("Enter Part Number", "Find Part", , , , , , 2)
If res = "False" Then Exit Sub 'exit if Cancel is clicked
res = Trim(UCase(res))
If res = "" Then Exit Sub 'exit if no entry and OK is clicked

Set RgFound = RgToSearch.Find(what:=res, LookIn:=xlValues,
lookat:=xlWhole, MatchCase:=False)
If RgFound Is Nothing Then
MsgBox "Part " & res & " not found."
Else
Application.Goto Reference:=RgFound.Address(True, True, xlR1C1)
End If

End Sub





"sebastienm" wrote:

Hi
You could use the AutoFilter instead: menu Data Filter AutoFilter
Select a value from the dropdown in the C col so that only these rows are
displayed, then enter data in col B, then choose a new value from the drop
down...
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

Find in column C and enter Data in Column B

Highlited Col C and then using the find dialog box I type in say 748, it
finds it on row 247, now I would like to type in Col B 5478, but I need to
close the dialog box then goto the left type in Col B 5478, then start the
whole process again. How anyone out their work out a nice formula or
application that will allow to find in Col C and then Type in Data to the
left in Col B. An example would be Col C 247 and Data to be typed in Col B
247 ie 5478.

Thankyou.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Find And Replace

in that macro, you would just have to replace the line:
Application.Goto Reference:=RgFound.Address(True, True, xlR1C1)
by
Application.Goto Reference:=RgFound.Offset(0,-1).Address(True, True,
xlR1C1)

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

I believe the macro below is one off this forum

Would it be possible to develop so that in this case part find in Col C it
then
allows one to type say 1905 and place in cell Col B, as at the moment using
your macro it finds what I want which is fine. As an example the dialog box
comes up I then type in 041 in finds it in Row C567, what I would like to
happen now is I type in 1901 and it inputsit in B567. Please



Sub FindPart()
Dim res
Dim RgToSearch As Range, RgFound As Range

Set RgToSearch = ActiveSheet.Range("C:C")

res = Application.InputBox("Enter Part Number", "Find Part", , , , , , 2)
If res = "False" Then Exit Sub 'exit if Cancel is clicked
res = Trim(UCase(res))
If res = "" Then Exit Sub 'exit if no entry and OK is clicked

Set RgFound = RgToSearch.Find(what:=res, LookIn:=xlValues,
lookat:=xlWhole, MatchCase:=False)
If RgFound Is Nothing Then
MsgBox "Part " & res & " not found."
Else
Application.Goto Reference:=RgFound.Address(True, True, xlR1C1)
End If

End Sub





"sebastienm" wrote:

Hi
You could use the AutoFilter instead: menu Data Filter AutoFilter
Select a value from the dropdown in the C col so that only these rows are
displayed, then enter data in col B, then choose a new value from the drop
down...
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

Find in column C and enter Data in Column B

Highlited Col C and then using the find dialog box I type in say 748, it
finds it on row 247, now I would like to type in Col B 5478, but I need to
close the dialog box then goto the left type in Col B 5478, then start the
whole process again. How anyone out their work out a nice formula or
application that will allow to find in Col C and then Type in Data to the
left in Col B. An example would be Col C 247 and Data to be typed in Col B
247 ie 5478.

Thankyou.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Find And Replace

Thankyou.

"sebastienm" wrote:

in that macro, you would just have to replace the line:
Application.Goto Reference:=RgFound.Address(True, True, xlR1C1)
by
Application.Goto Reference:=RgFound.Offset(0,-1).Address(True, True,
xlR1C1)

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

I believe the macro below is one off this forum

Would it be possible to develop so that in this case part find in Col C it
then
allows one to type say 1905 and place in cell Col B, as at the moment using
your macro it finds what I want which is fine. As an example the dialog box
comes up I then type in 041 in finds it in Row C567, what I would like to
happen now is I type in 1901 and it inputsit in B567. Please



Sub FindPart()
Dim res
Dim RgToSearch As Range, RgFound As Range

Set RgToSearch = ActiveSheet.Range("C:C")

res = Application.InputBox("Enter Part Number", "Find Part", , , , , , 2)
If res = "False" Then Exit Sub 'exit if Cancel is clicked
res = Trim(UCase(res))
If res = "" Then Exit Sub 'exit if no entry and OK is clicked

Set RgFound = RgToSearch.Find(what:=res, LookIn:=xlValues,
lookat:=xlWhole, MatchCase:=False)
If RgFound Is Nothing Then
MsgBox "Part " & res & " not found."
Else
Application.Goto Reference:=RgFound.Address(True, True, xlR1C1)
End If

End Sub





"sebastienm" wrote:

Hi
You could use the AutoFilter instead: menu Data Filter AutoFilter
Select a value from the dropdown in the C col so that only these rows are
displayed, then enter data in col B, then choose a new value from the drop
down...
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Steved" wrote:

Hello from Steved

Find in column C and enter Data in Column B

Highlited Col C and then using the find dialog box I type in say 748, it
finds it on row 247, now I would like to type in Col B 5478, but I need to
close the dialog box then goto the left type in Col B 5478, then start the
whole process again. How anyone out their work out a nice formula or
application that will allow to find in Col C and then Type in Data to the
left in Col B. An example would be Col C 247 and Data to be typed in Col B
247 ie 5478.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find & Replace: find part cell, replace whole cell katy Excel Worksheet Functions 3 April 3rd 23 01:20 PM
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Copy contents of Find (Find and Replace) rob_bob Excel Discussion (Misc queries) 0 March 26th 09 11:01 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM


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