Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Find & Replace Cell Links for Check Boxes

Hi,

I have a number of surveys where the answers are input by Y/N Check Boxes.
The Check Boxes are linked into a "Stats" spreadsheet with the True & False
answers. I need to update the survey spreadsheets for the new period which
means that the cell links need to be changed to a new column in the "Stats",
but keeping the same row.

Up to now I have been going into each Check Box and changing the links one
at a time, but it is taking forever (I.e. Changing $C$106 to $D$106). Is
there a way to select/group all (or even some) of the Check Boxes and change
the column link on mass???

Thanks in advance
TC
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Find & Replace Cell Links for Check Boxes

Are these checkboxes from the Forms toolbar?

If yes:

ption Explicit
Sub testme()
Dim CBX As CheckBox
Dim wks As Worksheet

Set wks = Worksheets("sheet1")

For Each CBX In wks.CheckBoxes
CBX.LinkedCell = Application.Range(CBX.LinkedCell).Offset(0, 1) _
.Address(external:=True)
Next CBX
End Sub


Teasee wrote:

Hi,

I have a number of surveys where the answers are input by Y/N Check Boxes.
The Check Boxes are linked into a "Stats" spreadsheet with the True & False
answers. I need to update the survey spreadsheets for the new period which
means that the cell links need to be changed to a new column in the "Stats",
but keeping the same row.

Up to now I have been going into each Check Box and changing the links one
at a time, but it is taking forever (I.e. Changing $C$106 to $D$106). Is
there a way to select/group all (or even some) of the Check Boxes and change
the column link on mass???

Thanks in advance
TC


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Find & Replace Cell Links for Check Boxes

Best solution is to copy and paste the previous values (paste special -
values) then put them somewhere safe for the time being (say you have 900
values select c2:c901 for example.) into a new clean sheet. Now select all
of the results cells (c2:c901 and drag them over 1 cell to column D, d2:d901
this will automatically change the links.

Now paste the old results back into the position in column c, c2:c901 again

That will work if there isnt a lot of follow on calculations, but I bet
there are...in which case & bear with me this is tricky but it will work

First of all make a copy of the workbook that you started with, all
checkboxes pointing at c

From your [main workbook copy] containing the checkboxes & stats sheets,
select the Sheet with the check boxes and the stats sheet together using CTRL
and MOVE them into a new workbook, save as a file with a [new name]. Close
the original file [main workbook copy] without saving

Now select column C in Stats your new file & insert a new column this will
automatically change the links to d.

Now Copy the check box sheet back into your original file [main workbook
copy] (do not copy the stats page as well).

Looking at the links now they are [new file]'stats'!d6 etc right? Ok now go
to Edit--links Click the change source button and select the file [main
workbook copy] i.e. the one you are in. Now the checkbox links will be
directed towards the Stats file in [main workbook copy] but will be pointing
at d not c

"Teasee" wrote:

Hi,

I have a number of surveys where the answers are input by Y/N Check Boxes.
The Check Boxes are linked into a "Stats" spreadsheet with the True & False
answers. I need to update the survey spreadsheets for the new period which
means that the cell links need to be changed to a new column in the "Stats",
but keeping the same row.

Up to now I have been going into each Check Box and changing the links one
at a time, but it is taking forever (I.e. Changing $C$106 to $D$106). Is
there a way to select/group all (or even some) of the Check Boxes and change
the column link on mass???

Thanks in advance
TC

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
find, replace, update links cinvic Excel Discussion (Misc queries) 0 December 15th 06 02:01 PM
Using Find & Replace to edit cell references in links Matt7102 Excel Discussion (Misc queries) 0 March 15th 06 08:50 PM
Find and replace should work in Excel text boxes Bob@Teton Excel Discussion (Misc queries) 0 October 20th 05 01:16 PM
Find and Replace Formula Links Werner Rohrmoser Excel Worksheet Functions 0 June 9th 05 12:13 PM
find and replace links in Excel 2003 MAndrews Excel Worksheet Functions 2 June 3rd 05 06:18 PM


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