Saving workbook as multiple cell values...so close to working. Could someone assist to get me there?

ZXsaurus

New Member
Joined
May 13, 2016
Messages
2
Hello all


I'm trying to set up a new spreadsheet for compiling quotes for my company. I've next to never used VBA before so this might as well be Greek to me. I'm trying to get two buttons to work

The first, being the "Save Workbook As". I found the code below and copy/pasted and it seems to work nicely, except for the fact it's only grabbing the name of what's in "B7". I can't find out what I should be changing that to for it to go down the list (in this case B7 to B16 until it sees a blank cell and stops. Any advice?


I'm also still on the hunt to get the "Generate Quote Email" button to do....anything really. To sum that one up: I want to be able to click that button and have it open a new email, BCC filled out, subject filled out as "RFQ: \list of part numbers/, then copy/paste a portion of the table starting at B7 to D7 and down as far as the fields are filled out.

Sub filesave()
Dim IntialName As String
Dim fileSaveName As Variant
InitialName = Range("B7")
fileSaveName = Application.GetSaveAsFilename(InitialFileName:=InitialName, _
fileFilter:="Excel Files (*.xlsm), *.xlsm")

If fileSaveName <> False Then
MsgBox "Save as " & fileSaveName
End If

End Sub
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top