Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Move cell info from one worksheet to another buy click a checkmark

I have a row of info, at the end of the row is a Check box. I would like to
be able to check the box and the information in that row automatically move
to another work sheet. Also, when the info has moved to the other worksheet,
I would like to be able to uncheck the check box an the infor move back to
the original worksheet. Can anyone help? Not sure what formula or how to
set this up.
--
grgrgr
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Move cell info from one worksheet to another buy click a checkmark

Is the CheckBox from "Forms" or "Control Toolbox" toolbar? They look the
same but are accessed differently and have different properties. If you move
the mouse to a Forms checkbox the pointer will change to a hand and a
right-click will bring a pop-up menu. A Control Toolbox object will do
neither.

Mike F
"Sherm" wrote in message
...
I have a row of info, at the end of the row is a Check box. I would like
to
be able to check the box and the information in that row automatically
move
to another work sheet. Also, when the info has moved to the other
worksheet,
I would like to be able to uncheck the check box an the infor move back to
the original worksheet. Can anyone help? Not sure what formula or how to
set this up.
--
grgrgr



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Move cell info from one worksheet to another buy click a checkmark

Here is the code for a Control checkbox:

Private Sub CheckBox1_Click()
Dim cbRow As Long

cbRow = Sheet1.CheckBox1.BottomRightCell.Row - 1
If Sheet1.CheckBox1.Value = True Then
Sheet1.Rows(cbRow).Copy Destination:=Sheet2.Rows(cbRow)
Sheet1.Rows(cbRow).ClearContents
ElseIf Sheet1.CheckBox1.Value = False Then
Sheet2.Rows(cbRow).Copy Destination:=Sheet1.Rows(cbRow)
Sheet2.Rows(cbRow).ClearContents
End If
End Sub


Mike F

"Mike Fogleman" wrote in message
...
Is the CheckBox from "Forms" or "Control Toolbox" toolbar? They look the
same but are accessed differently and have different properties. If you
move the mouse to a Forms checkbox the pointer will change to a hand and a
right-click will bring a pop-up menu. A Control Toolbox object will do
neither.

Mike F
"Sherm" wrote in message
...
I have a row of info, at the end of the row is a Check box. I would like
to
be able to check the box and the information in that row automatically
move
to another work sheet. Also, when the info has moved to the other
worksheet,
I would like to be able to uncheck the check box an the infor move back
to
the original worksheet. Can anyone help? Not sure what formula or how
to
set this up.
--
grgrgr





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Move cell info from one worksheet to another buy click a check

Mike, I used your code to copy a column from one sheet to another if the
checkbox (from controls toolbar) is checked. I have several checkboxes so
that various columns which represent results of various scenarios and have
made them all work by changing the number behind the BottomRightCell.Row
command from -1, -2...

Everything works great except that I do not understand how the number behing
the BottomRightCell.Row command works. If it is set to 0 it will copy the
contents of row I. Why is I = 0?

Thanks Mike

"Mike Fogleman" wrote:

Here is the code for a Control checkbox:

Private Sub CheckBox1_Click()
Dim cbRow As Long

cbRow = Sheet1.CheckBox1.BottomRightCell.Row - 1
If Sheet1.CheckBox1.Value = True Then
Sheet1.Rows(cbRow).Copy Destination:=Sheet2.Rows(cbRow)
Sheet1.Rows(cbRow).ClearContents
ElseIf Sheet1.CheckBox1.Value = False Then
Sheet2.Rows(cbRow).Copy Destination:=Sheet1.Rows(cbRow)
Sheet2.Rows(cbRow).ClearContents
End If
End Sub


Mike F

"Mike Fogleman" wrote in message
...
Is the CheckBox from "Forms" or "Control Toolbox" toolbar? They look the
same but are accessed differently and have different properties. If you
move the mouse to a Forms checkbox the pointer will change to a hand and a
right-click will bring a pop-up menu. A Control Toolbox object will do
neither.

Mike F
"Sherm" wrote in message
...
I have a row of info, at the end of the row is a Check box. I would like
to
be able to check the box and the information in that row automatically
move
to another work sheet. Also, when the info has moved to the other
worksheet,
I would like to be able to uncheck the check box an the infor move back
to
the original worksheet. Can anyone help? Not sure what formula or how
to
set this up.
--
grgrgr






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
Move cell info and info in range of cells on new entry abc[_2_] Excel Discussion (Misc queries) 5 February 15th 10 08:21 PM
Move cell info and info in neighboring cell on new entry belvy123 Excel Discussion (Misc queries) 6 June 25th 08 02:01 PM
move to another cell on click ashfire Excel Discussion (Misc queries) 2 July 5th 06 11:05 AM
Move user to new worksheet with cell click Phil Hageman[_4_] Excel Programming 11 December 30th 04 09:16 PM
Move user to another worksheet with click Phil Hageman[_4_] Excel Programming 1 December 30th 04 04:43 PM


All times are GMT +1. The time now is 04:16 AM.

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"