Range(A4).select not working

viky3v

New Member
Joined
Dec 30, 2017
Messages
2
Hi, I opened a .txt file using basic macro code in excel. Then I want to select particular cell then copy that...but when I use range(A4).select code I'm getting error.. ..pls help...
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

Try this:

Range("A4").Select


Hi, thanks for quick reply...still its not working.

i used to open .txt file in excel using below code and its successful.

Workbooks.Open ReadOnly:=False, Filename:=ZW47_Path & "" & ZW47_file

after opening. i used below code to select range
Range("A4").Select......its not working...pls help me
 
Upvote 0
ActiveSheet.Range("A4").Select

Or

Application.Goto ActiveWorkbook.Sheets("Sheet1").Range("A4")

change sheet name as needed ...

If not working please add the full code
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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