#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Shift cells right

Is there a way to move cells whose contents begin with '0A' from Col B
to Col C?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Shift cells right

On Jan 24, 12:36*pm, gary wrote:
Is there a way to move cells whose contents begin with '0A' from Col B
to Col C?


option explicit
sub moveem()
dim c as range
for each c in range("a2:a22")
if ucase(left(c,2))="0A" then
c.offset(,1)=c
c=""
end if
next c
end sub
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
Shift cells gary Excel Discussion (Misc queries) 1 January 25th 12 06:45 AM
how do I shift the contents of the cells up to remove empty cells. auctioncoach Excel Discussion (Misc queries) 2 February 11th 09 07:15 PM
How to delete all the blanc cells in a worksheet and shift cells l tiramisu Excel Discussion (Misc queries) 2 December 7th 06 04:45 AM
Shift cells up or down Rosemary Excel Discussion (Misc queries) 3 September 30th 06 02:44 PM
Skip cells with TAB/SHIFT+TAB but allow arrow keys/mouse selection of skipped cells Wescotte Excel Programming 1 June 6th 05 07:00 PM


All times are GMT +1. The time now is 11:08 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"