PC Review


Reply
Thread Tools Rate Thread

cell to worksheet

 
 
douglass
Guest
Posts: n/a
 
      15th Aug 2009
I have two open worksheets. The VBA would copy data from the source
worksheet then paste that information to the target worksheet.

The exact target worksheet name is always in cell
c7 of the source worksheet. So, based on that value, it first locates the
same sheet number in the target Worksheet, then pastes the data.

The source worksheet (tab) name keeps changing and does not always match
precisely the name in cell c7 of that sheet (which does not change)
--
douglass
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      16th Aug 2009
Use the worksheet codename and remove link to c7 if it never changes. If
also makes the copy operation simpler by referring to the sheet by its
codename.

e.g

Sheets("MyTarget").Range("A1") = MyCodeName.Range("A1")

--

Regards,
Nigel
(E-Mail Removed)



"douglass" <(E-Mail Removed)> wrote in message
news:99D22C6D-4F25-432C-8FF7-(E-Mail Removed)...
>I have two open worksheets. The VBA would copy data from the source
> worksheet then paste that information to the target worksheet.
>
> The exact target worksheet name is always in cell
> c7 of the source worksheet. So, based on that value, it first locates the
> same sheet number in the target Worksheet, then pastes the data.
>
> The source worksheet (tab) name keeps changing and does not always match
> precisely the name in cell c7 of that sheet (which does not change)
> --
> douglass


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking cells containing text from one worksheet to a cell with textin another worksheet lizmatthews00774@gmail.com Microsoft Excel Discussion 8 10th Oct 2008 12:58 PM
link a cell in the 'Master' worksheet list to a 'Detail' worksheet =?Utf-8?B?UGF1bCBDb25kcm9u?= Microsoft Excel Programming 12 16th Jul 2006 10:41 PM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Programming 1 25th Feb 2004 04:26 AM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Worksheet Functions 1 25th Feb 2004 04:26 AM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Misc 1 25th Feb 2004 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 AM.