Recording script in Excel; formula not dragging down, only values

Adam Klenk 0 Reputation points
2024-02-12T17:26:49.48+00:00

I'm trying to create a script in Excel by recording. Everything works great except when I run it, the cell I dragged down to copy a formula down gives the result of the value from the first cell and not the formulas result. I've ensured automatic fill is on. For example, I have a list of email addresses and I want this part of the script to "xxxx" the beginning of each. When I record, the result is xxxgfds@gmail.com, the cell under is xxxjutes@gmail.com and that is correct. However, when I run the script I get xxxgfds@gmail.com in both cells, or in my case a few hundred. Any ideas?

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,476 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
872 questions
0 comments No comments
{count} votes