thismonth

  1. P

    VBA If thismonth then lock sheet# criteria

    Hi All, I'm working with a workbook where it opens up to a specific sheet# based upon the current month. For example, if it is: October it opens up to Sheet1 . . . September it opens up to Sheet 12 in using this code: Sub MonthSheetSelect() Dim shtname As String Dim thismonth As Long...
  2. A

    Vlookup in VBA errors

    I am trying to run a Vlookup inside a VBA. I am trying to run a dynamic Vlookup with two changing variables that will pull the needed data with the other workbooks closed. The two changing variables are Month and Year. If there is a better way to do this I am open to suggestions. I am new at...
  3. W

    Macro Error

    I have been running this Macro for a while and all was good until my computer was upgraded to windows 10. My excel is now Excel 365 2016. The debugger highlights the row I put in red. Any help with this would be great. Sub CopyData_Machine_Performance() Application.ScreenUpdating = False...
  4. W

    Why 1004 Run Time error at Red Text?

    Sub CopyData_Machine_Performance() Application.ScreenUpdating = False Dim lastRow As Long lastRow = Sheets("DATADump").Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row Dim ldateto As Long Dim ldatefrom As Long Dim ThisMonth As Long Dim ThisYear...
  5. A

    Copy from range

    HI!!! Sub getSum() Dim strDate As String Dim ws As Worksheet strDate = InputBox("Insert date in format mm/yyyy", "User date", Format(Now(), "mm/yyyy")) If IsDate(strDate) Then strDate = Format(CDate(strDate), "mm/yyyy") Else MsgBox "Wrong date format. Please try again." Exit Sub End If Dim...
  6. A

    Sum a range based on other range criteria for all sheets

    Hi!!!! Sub getSum() Dim strDate As String Dim ws As Worksheet strDate = InputBox("Insert date in format mm/yyyy", "User date", Format(Now(), "mm/yyyy")) If IsDate(strDate) Then strDate = Format(CDate(strDate), "mm/yyyy") Else MsgBox "Wrong date format. Please try again." Exit Sub End If Dim...
  7. A

    Sum the Total value of a certain range with date for whole workbook

    Hi!!!! My workbook contains more that 1000 sheets and increases daily. I need to get total value of column "I" (Range "I7:I") for all sheets based on month in column "F" (Range "F7:F"). mumps (Member in this forum) have given me this wonderful code mentioned below which is working fine. But...

Watch MrExcel Video

This Week's Hot Topics

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
Top