If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Please help need urgent help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-10, 19:37
mxtreme mxtreme is offline
Registered User
 
Join Date: Apr 2010
Posts: 11
Please help need urgent help

Hello and let me say I am sorry if there are variations of my question posted but I could not find any and I am green.
I need help please
I would like to get a code to do the following pls.
pick the value in cell a1
copy range b2:s90 in that same worksheet
copy as picture
paste as picture in a different yet an existing workbook
create new worksheet
name new the work sheet as the value from a1 from the 1st worksheet

please advise here is what I have so far

Sub Snapshot()
'
'

If Worksheets("Report").Cells(2, 2).Value <> "CarDEALER" Then
Worksheets("Report").Cells(2, 2).Value = "CarDEALER"
End If

Range("B290").Select
Selection.CopyPicture Appearance:=xlPrinter, Format:=xlPicture
Application.CommandBars("Task Pane").Visible = False
Workbooks.Open Filename:= _
"C:\Documents and Settings\XXXX\My Documents\Something\5-18-2010.xls"
Sheets.Add
Range("A1").Select
ActiveSheet.Pictures.Paste.Select
ActiveWindow.DisplayGridlines = False
ActiveWorkbook.Save


reinput:
ActiveSheet.Name = InputBox("Please type the name for this sheet")
Exit Sub
retry:
MsgBox "That name either already exists or is not allowed. Please retry"
GoTo reinput

'ActiveWindow.Close

End Sub
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On