code not working after scanning with scan it to office app

antonisbbh

New Member
Joined
Jan 10, 2023
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hello all,

I have a code that every time I type something to column 2 is filling up some other cells like time stamp, now I tried to scan with this app and the code is not working.
when I type to cell is working but when I scan to same cell code is not working
appreciate any help.

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)



With Target
   If .Column <> 2 Or .Columns.Count > 1 Then Exit Sub
   If .Cells(1) > "" Then
      .Offset(0, 7) = Sheet3.Range("I4")
      .Offset(0, 8) = Sheet3.Range("I5")
      .Offset(0, 9) = Format(Now, "dd-mm-yyyy hh:mm:ss")
      
   Else
      .Offset(0, 7).ClearContents
      .Offset(0, 8).ClearContents
      .Offset(0, 9).ClearContents
      
   End If
End With




End Sub
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
When you say scan, like a handheld scanner, that will read a barcode.
 
Upvote 0
When you say scan, like a handheld scanner, that will read a barcode.
there is an Add-in call it scan IT to office, this one have a mobile application so every time I scan a barcode from the phone is going on the selected cell.
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top