Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying data to specific columns


I have written a script that copies data from an input table into
specific sheet to track information over time. What this macro does i
reference the leftmost column in the table and move as far as it ca
left. Then it offsets one column and copies the data in, as follows:

Sheets("Total").Select
Range("H3").Select
Selection.End(xlToRight).Select
Selection.Offset(0, 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone
SkipBlanks _
:=False, Transpose:=False

The problem is that if someone hits the macro twice it will copy ont
the next column and this shouldnt happen until there is new data. I
there a way i can reference a cell that shows the week number, an
moves the cursor along to that particular column

--
chalk
-----------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...fo&userid=2375
View this thread: http://www.excelforum.com/showthread.php?threadid=37673

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying data to specific columns


Yes you can. But we need more details. Which cell contains the weeknum
which cells in the column contain the weeknum. Your code provided doe
not work standalone for anyone to test.

Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=37673

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying data to specific columns


The cell that controls the week number will be in a front sheet and th
corresponding week numbers in the analysis sheet are running along th
top of the table (row B) with the data below it

--
chalk
-----------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...fo&userid=2375
View this thread: http://www.excelforum.com/showthread.php?threadid=37673

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
Copying Row Data to Specific Worksheet [email protected] Links and Linking in Excel 1 December 20th 06 07:04 AM
Specific keywords copying data to cells Leo Edwards Excel Worksheet Functions 6 June 12th 06 03:20 PM
copying specific data from 1 wrksht to another flrty Excel Worksheet Functions 1 February 1st 06 08:46 PM
import data to specific columns marlea Excel Discussion (Misc queries) 1 August 12th 05 02:05 AM
Macro Help - copying specific data Dave Excel Programming 1 April 22nd 05 07:08 AM


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