Hello,
I'm trying to set a dynamic variable using a Tables HeaderRowRange.
I figured if I can select the range using ActiveSheet.ListObjects(1).HeaderRowRange.Select that I could then store that selected range into a Range variable.
Sub SetRange()...
In a workbook with multiple sheets, I want to find the address of a cell containing the string "MIS", which will always be in a sheet in which cell A1 begins "P " (with a space after the letter P). I then want to save this address to a range variable and pass it to another sub which will set the...
I want to select cells and turn them upper case. the cells selected will change each time.
I have tried a few things and had no luck
the first way it did not want to do it bc I think my use of the range variable in the actual command is not right.
'set range based on selected cells
Set...
This is my first post, but I have used code samples from this site for many years. My trust in the code I have "borrowed" has encouraged me to become a member and learn to create my own code. Many thanks to all!
Excel 2010, MS Windows 7 Pro.
I want to copy the address of the active cell to...
Hi Everyone,
I have created the below code and a user defined function to-
- To specify the range of cells based on the input dates -->sdate and edate variable
-Run the user defined function searchcolumns based on input of range
Below is the code
Private Sub CommandButton2_Click()
Dim rstr...
I'm trying to create a automated/dynamic Text Import procedure and having trouble filling the array properties (.TextFileColumnDataTypes, .TextFileFixedColumnWidths) with range variables. I've named the ranges as this would be the ideal way to call them from code.
Here is the code:
Sub...
I've run into the issue where UDF's I write return errors when I try to use range variables fairly regularly. I imagine it's just a simple solution that I haven't come across yet, so here's a simple example that should hopefully solve my other formulas:
I'll enter the formula...
I have a small spreadsheet and im trying to find the fastest way to name a range using a macro.
The way i am currently finding my far right top point of the range is using "FInd" and then ctrl left.
The name is always on column C, in this case the name on top is "2009 Data" so thats what i...
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.