Why isn't this working for me?

K_Man95

Board Regular
Joined
Jul 31, 2002
Messages
158
Can anyone help me here? Am I missing something? Do I need a toolpack or a certain Option setting under Tools or something like that?
Sub Macro_3()

Sheets("Sheet1").Select
Range("BA5:BA2500").Select
Application.CutCopyMode = False
Selection.Copy
Range("BB3").Select
Sheets("Sheet2").Select
Range("D3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Sheet2").Select
Range("D3:D2510").SpecialCells(xlCellTypeBlanks).EntireRow.Delete

End Sub

This is the code that I have been trying to get to work all day long and it won't work.....and please... if there is an error from the keyboard to the chair.... don't laugh too hard..... What I am trying to do.. is, take data from Sheet 1 in Column BA (BA3:BA???), copy it, paste it onto Sheet 2 Column D (D3:D????) and then delete the rows that have blank cells. But, this code is not working and I am getting very frustrated... cause this is the code that I have seen posted all over this ROCKIN board. The next option I guess would be to Autofilter the Column..... but I would prefer not letting this get the better of me....

Oh, and don't forget, I am still hoping someone can help me with my other problem posted earlier....
This message was edited by K_Man95 on 2002-08-27 18:43
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi K_Man95,
Did you get any error msg when you executed your code?
Your code works on my system.
To debug press f8 at VBE. It means execute your code step by step.

HTH
 
Upvote 0
No errors... just stopped. Blank rows (cells) still there...not really sure what it was waiting on or doing...the macro just stopped after it copied from Sheet 1 and then pasted onto Sheet 2. The portion that won't work is the EntireRow.Delete part.

Any help or suggestions?
 
Upvote 0

Forum statistics

Threads
1,223,429
Messages
6,172,046
Members
452,444
Latest member
ShaImran193

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