specialcells

  1. N

    VBA code to only use Special Cells IF extra rows exist

    HI All, I've got a spreadsheet that via a Macro Button and some basic code I have written, will copy data into my spreadsheet table from another spreadsheet (via chdir ) . The data pasted in will have a few columns next to it, which have a series of formulas. My question is about the following...
  2. S

    Special Cell question

    hi all, i am a noob to VBA with a relatively low exposure to programming, i am trying to achieve the below objective but getting error message Objective: select last non blank row and offset to next cell type a message in it error message: Runtime error 1004 : method 'Range' of Object...
  3. S

    xlcelltypeAllValidation not working

    so a bit of background as to what im trying to acheive here: I want a peice of code that runs through all cells & finds every cell with a drop down in. Now the below seems to work but on occassions it doesnt show some cells that have validation(drop down) in them...
  4. C

    xlTypeBlanks/xlTypeVisible selecting wrong range

    I have some simple code that copies values from one workbook into another. When this is done, I want to add a timestamp (in a variable called dtStaticDate) to the copied cells in both the source and destination files. I need to select the blank cells in a table called "StaffWork" in the column...
  5. M

    ListBox Selection Associated with Visible Cells in a SpreadSheet

    Many thanks to all at Mr. Excel for all the help I have already received searching for tips and tricks. I am a new registered user and this is my first post. I could not figure this one out. I have a spreadsheet with a list of Event Documents and their file paths. I have some code that lists...
  6. P

    replace For..Next loop and use SpecialCells instead?

    hi all, is there a way to remove the For... Next loop in the below and do it with one step using SpecialCells Sub clearCells() Dim oCell As Range Range("C1:C" & Range("A1").End(xlDown).Row).Formula = "=IF(OR(A:A=""+"",A:A=""-""),NA(),"""")"...
  7. O

    VBA: Selecting cells of certain value AND also selecting the adjacent cells

    Hey, I have two simple columns of data: one with names (Column A) and the other with numbers (Column B). I am looking for the most efficient way of selecting cells in Column B of a certain value and also selecting the cells to the left of those selected cells in Column A. I have the current...
  8. Majawat

    Adding borders around formula values

    The F column has this following code: =IF(ISERROR(VLOOKUP(A7,Beers,2,FALSE)),"",IF(VLOOKUP(A7,Beers,2,FALSE)=0,"",VLOOKUP(A7,Beers,2,FALSE))) I need a VBA script that only creates a border around those cells that evaulate to a value and not "" This is the code I've tried: Dim LastRating...
  9. B

    Set ScreenUpdating = False...SpecialCells(xlCellTypeVisible) useless?

    Quick question- If you set screenupdating to false for speed ...does that mean you cant use functions that process based upon what is visible? ...does excel keeps track of what would be visible and process off of that such that it doesnt matter what you really do see? thanks in advance!
  10. S

    Copying Only One Column of a Filtered Table

    I have a worksheet with a unique number in column A "NumberList" and other columns of data. Autofiltering is on. I need to filter the worksheet on column 13, then copy the contents of displayed cells in column A to another worksheet. In 2001, Dave provided an elegant response to a similar...
  11. V

    SpecialCells Delete Based on Interior Colo

    Hi All, I have column of cells that I loop through and delete the cell if the interior color = vbCyan I'm wondering if It's possible to delete (shift:=xlup) cells using SpecialCells in the column where Interior.Color=vbCyan. Any thoughts? John, In Annapolis
  12. E

    How to Copy/Paste as Value for SpecialCells

    I am just now learning vba and am trying to replicate an index/match formula I use in Excel. Here is the excel code I use: =((IF(ISERROR(INDEX(sheet2!$J$1:$J$65536,MATCH(1,INDEX((sheet2!$M$1:$M$65536=$A7010)*(sheet2!$N$1:$N$65536=$B7010),0,1),0))),0...
  13. 6

    Unable to get the SpecialCells property

    wrote some code works fine in Excel, but from a .vbs file, it chokes. the offending line: lastRow = .Cells.SpecialCells(xlLastCell).Row the error: "Unable to get the SpecialCells property of the Range class" if i change that to: lastRow = 100 works fine, but obviously, loose the dynamism of...
  14. S

    Excel 2007 - SpecialCells error

    Hello fellows, I've been going through a harsh time programming some VBAs. I'm gonna try to be succinct. I have a database with lots of errors which i want to delete the rows where the errors are found. The code i'm using is simply: That works FINE when I have a small range of errors (i'd...
  15. D

    Selecting Specialcells in all sheets

    I am having trouble looping through the sheets in my workbook and selecting SpecialCells. When I run this code, it only processes the activesheet. Sub Testz() Dim Page As Worksheet For Each Page In ActiveWorkbook.Worksheets Selection.SpecialCells(xlCellTypeFormulas, 23).Select...
  16. W

    SpecialCells Loop not working

    Hi, I'm getting an error in my code below. I basically want to determine if the values in column F on the "50000 sheet are > 50000 and if so to copy them into the "Storage" sheet in column A and loop until finished The error is highlighted in red below- Object Variable or with Block...
  17. S

    Is there a "formula" or a way of "formatting" a cell...

    Is there a "formula" or a way of "formatting" a cell or even the entire column -- to automatically have the cell highlight (as in the yellow highlight button) if the sum is $0 (or less that $1)? I noticed while entering many spreadsheets worth of data that it will automatically pick-up and...
  18. F

    'unable to get the specialcells property of the range class'

    Hi there I'm trying to set up a macro to scan column 'b' for the text 'Aus', and then to copy the entire row to a second sheet each time it finds it. But I keep getting this error. My code is: Range("b:b").Select Selection.SpecialCells(xlCellTypeConstants, "Aus").EntireRow.Copy...

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