Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Is there a macro i can use to copy a cell +1

I am wondering if there is a VBA code to copy a whole cell into another whole
cell and add 1 more number to it. E.G. one cell E19 is 9N08, and i was trying
to put 9N09 into cell F19, E21 is 9S18, and i was trying to copy 9S19 into
F21 etc. for the whole worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Is there a macro i can use to copy a cell +1

Maybe...

=LEFT(F19,2)&TEXT(RIGHT(F19,2)+1,"00")



Bill M. wrote:

I am wondering if there is a VBA code to copy a whole cell into another whole
cell and add 1 more number to it. E.G. one cell E19 is 9N08, and i was trying
to put 9N09 into cell F19, E21 is 9S18, and i was trying to copy 9S19 into
F21 etc. for the whole worksheet.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Is there a macro i can use to copy a cell +1

Hi Bill,

The fill handle will do that for you,

With 9N08 in E19
Grab the fill handle and drag it across as far as you like.

The fill handle is the little black box at the bottom right
of the active cell. When you hover your cursor over
that box it will change to a small cross, just left click and drag.

If you can't see the fill handle you may need to go to
ToolsOptionsEdit Tab and Check 'Allow cell drag and drop'

HTH
Martin

"Bill M." <Bill wrote in message
...
I am wondering if there is a VBA code to copy a whole cell into another
whole
cell and add 1 more number to it. E.G. one cell E19 is 9N08, and i was
trying
to put 9N09 into cell F19, E21 is 9S18, and i was trying to copy 9S19 into
F21 etc. for the whole worksheet.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Is there a macro i can use to copy a cell +1

Another thing I was wondering is if i could change the letters in the cells
from s, n, etc. to an A? after being copied?

"Bill M." wrote:

I am wondering if there is a VBA code to copy a whole cell into another whole
cell and add 1 more number to it. E.G. one cell E19 is 9N08, and i was trying
to put 9N09 into cell F19, E21 is 9S18, and i was trying to copy 9S19 into
F21 etc. for the whole worksheet.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Is there a macro i can use to copy a cell +1

=LEFT(F19,1)&"A"&TEXT(RIGHT(F19,2)+1,"00")

If you really want a macro, you'd have to specify what that "etc" means. Or if
the formula works, you could use the formula to populate the range and then just
convert to values.

Bill M. wrote:

Another thing I was wondering is if i could change the letters in the cells
from s, n, etc. to an A? after being copied?

"Bill M." wrote:

I am wondering if there is a VBA code to copy a whole cell into another whole
cell and add 1 more number to it. E.G. one cell E19 is 9N08, and i was trying
to put 9N09 into cell F19, E21 is 9S18, and i was trying to copy 9S19 into
F21 etc. for the whole worksheet.


--

Dave Peterson


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
Want to use a Macro to copy and paste cell *value* only HeadRusch Excel Discussion (Misc queries) 1 May 11th 07 11:06 PM
Using macro to copy a part of a cell content to next cell Charles Excel Discussion (Misc queries) 6 May 31st 06 05:57 AM
Getting macro to copy to starting cell sony654 Excel Worksheet Functions 3 February 4th 06 07:16 PM
Formula/Macro to copy into a cell ebraun01 Excel Worksheet Functions 2 January 30th 06 01:52 PM
Macro help - copy a cell down gjcase Excel Discussion (Misc queries) 3 September 4th 05 05:09 AM


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

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

About Us

"It's about Microsoft Excel"