sheet1.cells1

  1. T

    With command

    I have values in cells A1 to B2 on Sheet1. I want to read those values into an array and paste onto Sheet2. Why is it that this works: Dim MyArray() As Variant MyArray() = Sheet1.Cells(1, 1).CurrentRegion.Value Sheet2.Cells(1, 1).CurrentRegion.Delete...
  2. T

    Refer to a range using cells instead of Range

    This works: MaxVal = Application.WorksheetFunction.Max(Sheet1.Range("A1:F1")) but not this: MaxVal = Application.WorksheetFunction.Max(Range(Cells(1,1), Cells(1,6)))) neither do these: MaxVal = Application.WorksheetFunction.Max(Range(Sheet1.Cells(1,1), Sheet1.Cells(1,6)))) MaxVal...
  3. J

    activeX multiselect list doesn't save when exiting

    I have created a small macro to display a checklist that can by checked off and says "Complete" once all items have been checked. I created this using ActiveX Listbox with multiselect. However, when the file is saved and reopened, all the check marks clear out. Is there a way to fix this so...
  4. T

    Select Case Like

    Why does this work: If Sheet1.Cells(1,1).Value Like "a*" Then MsgBox "Starts with a" but this fails? Select Case Sheet1.Cells(1,1).Value Case Like "a*" Msgbox "Starts with a" Case Else Msgbox "Doesn't" End Select EDIT SORTED: Select Case...

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