ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Macros (https://www.excelbanter.com/excel-discussion-misc-queries/197585-excel-macros.html)

Paul Bond

Excel Macros
 
What command should I use in an Excel visual basic macro to move the current
cell to the left by 1

Wigi

Excel Macros
 
ActiveCell.Offset(0,-1).Select


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Paul Bond" wrote:

What command should I use in an Excel visual basic macro to move the current
cell to the left by 1


Gary''s Student

Excel Macros
 
Sub Macro1()
ActiveCell.Cut
ActiveCell.Offset(0, -1).Select
ActiveSheet.Paste
End Sub

--
Gary''s Student - gsnu200797

Don Guillett

Excel Macros
 
Sub moveactivecell()
ActiveCell.Cut ActiveCell.Offset(, -1)
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Paul Bond" wrote in message
...
What command should I use in an Excel visual basic macro to move the
current
cell to the left by 1




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

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