#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel Macros

What command should I use in an Excel visual basic macro to move the current
cell to the left by 1
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 396
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Excel Macros

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

--
Gary''s Student - gsnu200797
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
macros in excel Jai Excel Discussion (Misc queries) 2 June 22nd 05 06:29 PM


All times are GMT +1. The time now is 10:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"