unable to type into cell after opening sheet from another workbook

B-Man

Board Regular
Joined
Dec 29, 2012
Messages
185
Office Version
  1. 2019
Platform
  1. Windows
I open a workbook using vba below operated from a userform

Sometimes I can't type into the cells in the new workbook unless I swap between the workbooks and don't have undo until I do the same. If I open it and I can type into the cell I still don't have undo unless I swap between the workbooks.


not sure if its activating the workbook to run the cmd or .... I had the issue when i didnt have "unload me" and once adding that then allowed me to type most of the time but sometimes it doesnt and I still have the undo problem.

VBA Code:
Private Sub NotesLabel_Click()
    ThisWorkbook.Activate
        Range("notes").Select
        Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
        ActiveWorkbook.Sheets("Notes").Select
    Unload Me
End Sub
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
sounds like its a bug with vba/excel as "unresponsive ribbon" I found a right then left click fixes it...
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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