LearningExcel2024
New Member
- Joined
- Jan 15, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi,
As the title says, I am very new to Excel, more specifically VBA, and I'm working on a test project to help familiarise myself with the various concepts involved. The test project is namely a UserForm that enables the user to select a cell, or range of cells, to input a desired term or text in their selection. I am pulling the ranges using the Refedit control, as it is dynamic and seems, to me anyway, to be user-friendly.
The positive is that I have got it to work i.e. if the user has selected a range and included a term in the provided text box, it will populate the Worksheet as designed. However, there is a behaviour that is prompting the aforementioned error: the user doesn't select a range and clicks 'Input.'
I am obviously looking for a solution - and I have spent the past two days reading various resources in an attempt to resolve it myself - but more so to understand the reason(s) for the error.
I have attached related screenshots of the UserForm, Worksheet, Error dialog and of course the code.
Any guidance would be greatly appreciated.
Thank you.
As the title says, I am very new to Excel, more specifically VBA, and I'm working on a test project to help familiarise myself with the various concepts involved. The test project is namely a UserForm that enables the user to select a cell, or range of cells, to input a desired term or text in their selection. I am pulling the ranges using the Refedit control, as it is dynamic and seems, to me anyway, to be user-friendly.
The positive is that I have got it to work i.e. if the user has selected a range and included a term in the provided text box, it will populate the Worksheet as designed. However, there is a behaviour that is prompting the aforementioned error: the user doesn't select a range and clicks 'Input.'
I am obviously looking for a solution - and I have spent the past two days reading various resources in an attempt to resolve it myself - but more so to understand the reason(s) for the error.
I have attached related screenshots of the UserForm, Worksheet, Error dialog and of course the code.
Any guidance would be greatly appreciated.
Thank you.