Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default CheckBox value to worksheet

I have one CheckBox on my user form, if it is checked I want the Value Yes
(or No if the CheckBox is not selected) to go into the active row column 2
(using something like rng(1, 2).Value = ???). My macro already sets the
current row as active, I just do not know how to code this.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default CheckBox value to worksheet

Hi,
If your are in the target cell:

activecell.offset(0,0).select
'put it in column B of the current row
activecell.offset(0,1).value=whatever

-----Original Message-----
I have one CheckBox on my user form, if it is checked I

want the Value Yes
(or No if the CheckBox is not selected) to go into the

active row column 2
(using something like rng(1, 2).Value = ???). My macro

already sets the
current row as active, I just do not know how to code

this.


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default CheckBox value to worksheet

Mark assumed that column A would be the active cell

Cells(activeCell.row,2).Value = iif(checkbox1.value,"Yes","No")


might be more robust.

--
Regards,
Tom Ogilvy

"Patrick Simonds" wrote in message
...
I have one CheckBox on my user form, if it is checked I want the Value Yes
(or No if the CheckBox is not selected) to go into the active row column 2
(using something like rng(1, 2).Value = ???). My macro already sets the
current row as active, I just do not know how to code this.




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
checkbox in a protected worksheet Eric Wixom Excel Worksheet Functions 2 January 11th 08 04:15 PM
Checkbox to open another worksheet SLKoelker Excel Discussion (Misc queries) 3 August 21st 07 05:56 PM
checkbox and worksheet Jenn Excel Discussion (Misc queries) 2 June 26th 06 04:38 PM
Loop through checkBox on worksheet bman Excel Programming 3 November 26th 03 03:22 PM
accessing CheckBox on Worksheet Mike Tomasura Excel Programming 4 July 24th 03 01:19 PM


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

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"