Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Macro to transfer contents of 'Selected' cell to alternate cell.

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Macro to transfer contents of 'Selected' cell to alternate cell.

The transfer would be initiated by clicking on a button that the macro would
be assigned to.

"Gryndar" wrote:

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Macro to transfer contents of 'Selected' cell to alternate cell.

try this
Create a button using forms and assign this macro

Sub test()
Selection.Copy
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub


On Dec 20, 7:52*am, Gryndar wrote:
The transfer would be initiated by clicking on a button that the macro would
be assigned to.

"Gryndar" wrote:
I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!


Thanks,
Guy


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Macro to transfer contents of 'Selected' cell to alternate cell.

Best to stick with one thread.

See replies to your first posting.


Gord Dibben MS Excel MVP

On Fri, 19 Dec 2008 18:48:01 -0800, Gryndar
wrote:

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Macro to transfer contents of 'Selected' cell to alternate cel

That does not work. It only transfers info to adjacent cell. I need to
transfer contents from a currently sellected cell to a particular cell, (In
this case from whatever cell is sellected to C2 if blank or C3 if not blank).

"muddan madhu" wrote:

try this
Create a button using forms and assign this macro

Sub test()
Selection.Copy
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub


On Dec 20, 7:52 am, Gryndar wrote:
The transfer would be initiated by clicking on a button that the macro would
be assigned to.

"Gryndar" wrote:
I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!


Thanks,
Guy





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Macro to transfer contents of 'Selected' cell to alternate cel

To start with I want to thank everyone who has contributed to this, THANKS,
ya'll are great!
After trying all the formulas and noticing what each did I figured I could
combined a couple suggestions to get it to work. I used the original formula
from Luke M:
Sub CheckCell()
If Range("A2").Value = "" Then
Range("A2").Value = Range("C2").Value
Else
Range("A3").Value = Range("C2").Value
End If

End Sub
And substituted [Range("C2").Value] with [ActiveCell.Value] and it works
perfectly. I probably have just not been explaining it good enough to begin
with, sorry about that. The original formula almost worked but I didn't know
the syntax for using the sellected cell instead of 'C2' and couldn't figure
it out till the post by muddan madhu. His formula was not what I was looking
for but when I saw the syntax "ActiveCell" I figured maybe I could use that,
and it worked. I have learned a lot about these formulas from all this and
should be able to figure out some other stuff I have been wondering about
with this stuff.
Thanks a bunch everyone, ya'll have all been really great, I'm just not that
good at explaining sometimes.

MERRY CHRISTMAS!

"Gord Dibben" wrote:

Best to stick with one thread.

See replies to your first posting.


Gord Dibben MS Excel MVP

On Fri, 19 Dec 2008 18:48:01 -0800, Gryndar
wrote:

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Macro to transfer contents of 'Selected' cell to alternate cel

If you had watched your original posting you would have seen my reply about
using the "Activecell"


Gord

On Sat, 20 Dec 2008 09:58:01 -0800, Gryndar
wrote:

To start with I want to thank everyone who has contributed to this, THANKS,
ya'll are great!
After trying all the formulas and noticing what each did I figured I could
combined a couple suggestions to get it to work. I used the original formula
from Luke M:
Sub CheckCell()
If Range("A2").Value = "" Then
Range("A2").Value = Range("C2").Value
Else
Range("A3").Value = Range("C2").Value
End If

End Sub
And substituted [Range("C2").Value] with [ActiveCell.Value] and it works
perfectly. I probably have just not been explaining it good enough to begin
with, sorry about that. The original formula almost worked but I didn't know
the syntax for using the sellected cell instead of 'C2' and couldn't figure
it out till the post by muddan madhu. His formula was not what I was looking
for but when I saw the syntax "ActiveCell" I figured maybe I could use that,
and it worked. I have learned a lot about these formulas from all this and
should be able to figure out some other stuff I have been wondering about
with this stuff.
Thanks a bunch everyone, ya'll have all been really great, I'm just not that
good at explaining sometimes.

MERRY CHRISTMAS!

"Gord Dibben" wrote:

Best to stick with one thread.

See replies to your first posting.


Gord Dibben MS Excel MVP

On Fri, 19 Dec 2008 18:48:01 -0800, Gryndar
wrote:

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Macro to transfer contents of 'Selected' cell to alternate cel

Sorry about that, I apologise. Been kinda hectic lately but no excuse. Sorry
and Thanks a bunch for all your help.
Merry Christmas!
Guy

"Gord Dibben" wrote:

If you had watched your original posting you would have seen my reply about
using the "Activecell"


Gord

On Sat, 20 Dec 2008 09:58:01 -0800, Gryndar
wrote:

To start with I want to thank everyone who has contributed to this, THANKS,
ya'll are great!
After trying all the formulas and noticing what each did I figured I could
combined a couple suggestions to get it to work. I used the original formula
from Luke M:
Sub CheckCell()
If Range("A2").Value = "" Then
Range("A2").Value = Range("C2").Value
Else
Range("A3").Value = Range("C2").Value
End If

End Sub
And substituted [Range("C2").Value] with [ActiveCell.Value] and it works
perfectly. I probably have just not been explaining it good enough to begin
with, sorry about that. The original formula almost worked but I didn't know
the syntax for using the sellected cell instead of 'C2' and couldn't figure
it out till the post by muddan madhu. His formula was not what I was looking
for but when I saw the syntax "ActiveCell" I figured maybe I could use that,
and it worked. I have learned a lot about these formulas from all this and
should be able to figure out some other stuff I have been wondering about
with this stuff.
Thanks a bunch everyone, ya'll have all been really great, I'm just not that
good at explaining sometimes.

MERRY CHRISTMAS!

"Gord Dibben" wrote:

Best to stick with one thread.

See replies to your first posting.


Gord Dibben MS Excel MVP

On Fri, 19 Dec 2008 18:48:01 -0800, Gryndar
wrote:

I need a macro that will transfer contents of a cell that is currently
'selected / highlighted' to another cell, and if that cell is not blank then
to transfer the contents of the 'selected' cell to an alternate cell.
Merry Christmas Everyone!

Thanks,
Guy




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
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
Transferring cell contents from selected rows only. Colin Hayes Excel Worksheet Functions 1 July 4th 07 08:54 PM
Transfer Cell Contents to Tab Colin Hayes Excel Discussion (Misc queries) 12 April 13th 07 04:59 AM
Automatically transfer cell contents metaltech Excel Worksheet Functions 0 June 28th 06 03:10 PM
print only selected cell contents without loosing spread sheet for Anna Tozier Excel Discussion (Misc queries) 1 September 16th 05 05:22 PM


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