tblrow.range.cells1

  1. D

    Correct syntax for row colour

    I have some code that copies data to other sheets depending on various options that are selected. This is part of my code that is working: Select Case tblrow.Range.Cells(1, 6).Value Case "Yir" DocYearName = tblrow.Range.Cells(1...
  2. D

    Need row colour to be purple if a value is in a cell for each row

    I have a spreadsheet that copies rows from a table to separate documents depending on several factors. This is the code from my copy button. Sub cmdCopy() Dim wsDst As Worksheet, wsSrc As Worksheet, tblrow As ListRow Dim Combo As String, sht As Worksheet, tbl As ListObject...
  3. D

    I need an alternative to a if statement

    I have some code that is meant to copy rows in a spreadsheet depending on the value of the cell in column F for that row. I need to be able to distinguish between having the value to be Ang Wes or Ang Riv. At the moment, regardless of the value, it will always default to Ang Riv but I need...
  4. D

    VBA to copy rows

    I have some code that copies rows from a table to a sheet in a workbook according to the date of the row. 2 rows in the table copy to 29 rows in the appropriate workbook and I have no idea why, can someone help me please? Here is the copy code: Sub cmdCopy() With Application...
  5. D

    Object variable or with block variable not set

    Hi, Why am I getting the error of Object variable or with block variable not set when I try and run my code? Sub cmdNot_Accept_Click() Dim wsDst As Worksheet Dim wsSrc As Worksheet Dim tblrow As ListRow Dim Combo As String Dim sht As Worksheet Dim tbl As ListObject Dim LastRow As Long Dim...
  6. D

    Copy formulas using VBA

    How do I modify this code to copy formulas from column I & J of the table tblCosting, of the row being copied to the file, whose name is stored in column 36 or 37 of the particular row? I am still learning to code so I tried to write several lines in the middle but they didn’t work. This code...
  7. D

    Is it possible to copy data to files that are not open

    I have code to copy rows of data from a table in a spreadsheet to one of multiple other spreadsheets containing a table depending on the year in a date field of the row. Is it possible to copy it to spreadsheets that are not open? If it is possible, would you just need to store the extra...
  8. D

    code to copy to another document

    I am trying to write some code to copy to another document and it is not working. Here is the code: Private Sub CmdSend_Click() Dim tbl As ListObject Dim newRow As ListRow Dim wsDst As Worksheet Dim wsSrc As Worksheet Dim tblrow As ListRow Dim Combo As String Dim sht As Worksheet Dim lastrow...

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