Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

Excel VBA - Copy andpaste formula without incrementing

$
0
0

I have a number of formulas similar to this one:

=MID('Sheet1'!O40,1,5)

I'm trying to copy and paste this formula to a blank cell without incrementing the cell reference and updating the worksheet reference.

Desired End Result:

=MID('Sheet2'!O40,1,5)

I've used the below code as a test sample but the copied formula auto increments the cell reference. Is there anyway to copy and paste formulas without incrementing?

Range("E2").Copy
Range("E126").PasteSpecial xlPasteFormulas

Viewing all articles
Browse latest Browse all 88054

Trending Articles