excel - Getting runtime error 1004 when having copy/paste function -


I'm trying to compile this. What is the correct way to copy the cell and paste another sheet?

sub copy ()

  integer dim as integer dim row like integer dim copy string as negative nirov as integer dim wrksht as integer wrksht = 3 newrow = 1 col = 23 for 1 phase-1 worksheets (3) .cel (33, cola) .copy worksheets (17). Game (line, 1). Paste Specific Changes: = For Stacks = 31 to 1 Step-1 If Worksheets (3) .mail (line, color). Value = "x" then worksheets (17) .seel (new, 2). Value = worksheet (12). Row, 25). Value new = = new + 1 end if next line next call   

closing sub

In your line:

  worksheet (17). Game (line, 1). Paste Specific Transjections: True Truth   

You are trying to refer to a cell using the variable line before giving it a value. It's possible that your error is happening.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -