ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Code to pull the value of a Cell of the next Worksheet to the left (https://www.excelbanter.com/excel-programming/341200-code-pull-value-cell-next-worksheet-left.html)

CRayF

Code to pull the value of a Cell of the next Worksheet to the left
 
How would I code to pull the value of a Cell of the next Worksheet to the left?

Chip Pearson

Code to pull the value of a Cell of the next Worksheet to the left
 
I'm not sure I understand your question, but maybe something like

If Not ActiveSheet.Previous Is Nothing Then
Range("A1").Value = ActiveSheet.Previous.Range("A1").Value
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"CRayF" wrote in message
...
How would I code to pull the value of a Cell of the next
Worksheet to the left?




CRayF

Code to pull the value of a Cell of the next Worksheet to the
 
thanks


All times are GMT +1. The time now is 04:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com