Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copying data into alternate unprotected cells in another spreadsheet

At work, I have a protected worksheet that has individual cells that
are unprotected. However, protected cells surround each cell I'm
trying to paste values into. That is, empty columns and rows that were
used to format the worksheet were protected. There's A LOT (hundreds)
of data points that need to go into this protected worksheet and at the
moment copy/paste special is the solution. Macros could help, but this
process would be terribly repetitive to do and it just welcomes errors.
Basically, I want to semi-automate the filling-in of the unprotected
cells in a protected worksheet with data from another spreadsheet. I'm
stuck.

A simple example of what I'm talking about: SpreadsheetA contains the
values 1 through 5 in cells A1:E1 in Sheet1. I want to paste them into
Spreadsheet B (the protected one)into cells A1, C1, E1, F1, and G1 in
Sheet2. So, B1 in SpreadsheetA gets pasted into C1 in SpreadsheetB.

One final restriction to contend with: the unprotected spreadsheet must
start with empty unprotect cells and has to finish with values in those
cells.

Let me know if you have any ideas . . .

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Copying data into alternate unprotected cells in another spreadsheet

Jose,

Your statement:

"Macros could help, but this process would be terribly repetitive to do and it just welcomes
errors."

is entirely wrong. Macros are the only way to do this: writing the macro wouldn't take any longer
than pasting in this line a few hundred times:

Worksheets("Sheet2").Range("A1").Value = Worksheets("Sheet1").Range("A1").Value

and then editing it: the second line then becomes

Worksheets("Sheet2").Range("C1").Value = Worksheets("Sheet1").Range("B1").Value

and so on....

Unless your transfer of cells has some looping logic to it, then you are stuck with a line by line
approach.

HTH,
Bernie
MS Excel MVP


"JOSE" wrote in message
oups.com...
At work, I have a protected worksheet that has individual cells that
are unprotected. However, protected cells surround each cell I'm
trying to paste values into. That is, empty columns and rows that were
used to format the worksheet were protected. There's A LOT (hundreds)
of data points that need to go into this protected worksheet and at the
moment copy/paste special is the solution. Macros could help, but this
process would be terribly repetitive to do and it just welcomes errors.
Basically, I want to semi-automate the filling-in of the unprotected
cells in a protected worksheet with data from another spreadsheet. I'm
stuck.

A simple example of what I'm talking about: SpreadsheetA contains the
values 1 through 5 in cells A1:E1 in Sheet1. I want to paste them into
Spreadsheet B (the protected one)into cells A1, C1, E1, F1, and G1 in
Sheet2. So, B1 in SpreadsheetA gets pasted into C1 in SpreadsheetB.

One final restriction to contend with: the unprotected spreadsheet must
start with empty unprotect cells and has to finish with values in those
cells.

Let me know if you have any ideas . . .



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copying data into alternate unprotected cells in another spreadsheet

Sure as heck helps! I was heading in the wrong direction and your
response brought some clarity -- which is a good thing b/c I had my
head buried in a VB reference book. This is simple and a little
looping logic will make it run a heck of a lot smoother.

Bernie, I truly appreciate the help.

All the best,
Jose

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
how to delete alternate rows in a spreadsheet? SI New Users to Excel 3 April 17th 08 10:19 AM
Copying cells from one spreadsheet to another? Doug Excel Worksheet Functions 7 June 14th 07 01:15 AM
Automatic data entry in alternate cells based on drop-down menu se silence13 Excel Worksheet Functions 3 March 23rd 07 03:15 AM
Can some cells remain unprotected in a protected spreadsheet ? Detenbeck3890 Excel Discussion (Misc queries) 2 January 12th 06 12:54 AM
macro to paste data in alternate cells-pawan Pawan Excel Programming 7 June 21st 05 11:25 PM


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