RUN TIME ERROR "1004"

JOBZ

New Member
Joined
Sep 27, 2024
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Guys any one could help me solving this problem:

ActiveCell.Offset(1, 0).Range("A1").Select

as I try to save data to transfer it to yearly attendance record it giving me this error.
 

Attachments

  • REFERENCE FILE.jpg
    REFERENCE FILE.jpg
    230.4 KB · Views: 8
  • REFERENCE FILE_2.jpg
    REFERENCE FILE_2.jpg
    104.8 KB · Views: 7

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.
Given your screenshot, I am guessing your active cell is on the last row of the sheet ie row 1048576 and offset 1 is taking you off the page.
 
Upvote 0
Guys any one could help me solving this problem:

ActiveCell.Offset(1, 0).Range("A1").Select

as I try to save data to transfer it to yearly attendance record it giving me this error.
 

Attachments

  • REFERENCE FILE_3.jpg
    REFERENCE FILE_3.jpg
    136 KB · Views: 6
Upvote 0
Given your screenshot, I am guessing your active cell is on the last row of the sheet ie row 1048576 and offset 1 is taking you off the page.
thank you for reply hope can you kindly help me what I need to edit on this formula?
 

Attachments

  • REFERENCE FILE_3.jpg
    REFERENCE FILE_3.jpg
    136 KB · Views: 3
Upvote 0
Replace the previous 2 line with this line.
ie Range("B6").Select and Selection.End(xlDown).Select

VBA Code:
Range("B" & Rows.Count).End(Xlup).Select
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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