Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
We have a recorded macro that works fine, basically one types their work number and it triggers a Vlookup and auto fills a disposition log with details like if they were to checkout a tool. We have the same function when a tool is returned. There are two things I'm looking for; the first one is when the macro is activated it switches sheets to the log. We don't want this to happen, we want to sheet to remain on the data entry sheet. If we can do that will we be able to hide the log (Sheet) or do we need another macro to do that?
Here is our macro.
Sub SIGNOUT1()
'
' SIGNOUT1 Macro
'
'
Range("C28:G28").Select
Selection.Copy
Sheets("Sign out ").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Rows("3:3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
Sub SIGNIN1()
'
' SIGNIN1 Macro
'
'
Range("C28:G28").Select
Selection.Copy
Sheets("Sign in ").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Rows("3:3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
Here is our macro.
Sub SIGNOUT1()
'
' SIGNOUT1 Macro
'
'
Range("C28:G28").Select
Selection.Copy
Sheets("Sign out ").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Rows("3:3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
Sub SIGNIN1()
'
' SIGNIN1 Macro
'
'
Range("C28:G28").Select
Selection.Copy
Sheets("Sign in ").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Rows("3:3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub