Linked Questions
13 questions linked to/from Select method of Range class failed via VBA
0 votes
1 answer
248 views
Error executing Range.Select [duplicate]
I don't know what is wrong with this code. it shows an error at Rng.select. When i tested on a separate sheet it worked. Any help?. Sub copyex() Dim Lastro As Integer Dim oSht As Worksheet Dim Rng ...
0 votes
0 answers
31 views
find a value , copy all rows containing the value and paste it using searchstring and myunion [duplicate]
I am trying to have a search by cell value I dont know if the code I have is my best choice. and Im having errors with it, I want to search a cell value from another sheet "Family Ref" in ...
0 votes
0 answers
14 views
Debugger is flagging code when 2 macros ran together [duplicate]
I'm having an issue with a section of code is being flagged by the debugger, but I can't figure out why. Section 1 is copying a sheet and renaming it a cell value. This section seems to work fine. ...
44 votes
3 answers
80k views
Excel VBA, getting range from an inactive sheet
This script works fine when I'm viewing the "Temp" sheet. But when I'm in another sheet then the copy command fails. It gives an Application-defined or object-defined error: Sheets("...
3 votes
1 answer
13k views
VBA code works only in the debugging mode and hangs when running in normal mode
This problem is driving me crazy. I have the following code: 'unprotect sheet If.Range("Start").Row+1<.Range("End").Row then .Rows(.Range("Start").Row+1 & ":" & .Range("End").Row-1)....
1 vote
2 answers
7k views
How can I select a cell, given its row and column number?
I am trying to select a cell by giving which row and column to use. It is giving me an error: "Unable to get the select property of the range class." when I get to this line: Sheets("...
0 votes
2 answers
3k views
Can't Select a Cell - Very Strange
Please help! The last line of my code 'Sheets("Original Data from Server").Cells(4, 2).Select Will not work! Keep getting error "Select method of range class failed' Whenever I only run that one line,...
1 vote
2 answers
5k views
excel vba insert column runtime error 1004
this is my first post on StackExchange! I've been using StackExchange for answers, but now i really have a question. I am trying to add a column in excel using vba. This is procedure is part of a ...
-1 votes
3 answers
768 views
VBA range("A1") command not working when I open different excel workbook
My purpose is to copy rows from another Excel workbook and paste it back into my original Excel workbook This code works perfectly well if i remove line 2 and test it on my original Excel workbook ...
-1 votes
1 answer
192 views
How to save all Excel files in a folder as pipe delimited files
I'm writing a process that needs to loop through all Excel files in a folder and save each one as a pipe delimited value. I've done a lot of hunting on how to do this and most of them say to change ...
0 votes
1 answer
163 views
Runtime error 1004. Select method of range class failed. in VBA
I have created a form that adds information to a sheet. The data is added to the sheet by clicking an "ADD" button. Once added to the sheet, It then selects all data in the sheet to sort ...
0 votes
1 answer
151 views
Trouble With VBA ADO Call
I am relatively new to VBA and need some assistance. I have been piecing together this application from other bits and samples. This was working on Friday but now it isn't and I don't understand ...
0 votes
1 answer
56 views
How can I use variable ranges to copy and paste across worksheets?
I am getting stuck between two errors. I am trying to create a module to copy data from one tab of a workbook and then paste it into another. When I run code A: Dim N As Range Dim Out As Range Dim c ...