PaulFogel
Member
Members
Forum Posts: 81
Member Since:
July 7, 2016
July 7, 2016
Offline
Hello,
This should be very simple but I lack VBA experience. I recorded a macro and then looked at the code it produced but I thought there might be a simpler way to change what I have, below.
Here's a line of code in my workbook:
Range("B1").Value = Range("B2").Value
This copies B2's value to B1.
I want to change this to copy B2's formula only (non-VBA: PasteSpecial/Formula) to B1. How should I rewrite this line of code?
Paul
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: G Thomas
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 919
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 336
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Miguel Costa
Nick Dowling
Silvia Ramos
Muhammad Abdullah Asad
Ifeanyi Aghanama
Ann Crossman
Kate Manders
James Carabott
Steven Venz
Robert Morrison
Forum Stats:
Groups: 3
Forums: 25
Topics: 7066
Posts: 30968
Member Stats:
Guest Posters: 49
Members: 34459
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —